In some code I am maintaining, I have found the expression:
$r->{DISPLAY} =~ s/\Device//s;
What surprises me is that it matches both device and Device!
I have not found any mention of \D in the documentation, only \d.
Can someone clarify please...
\D
is the negation of \d
, i.e. it matches anything that is not a digit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With