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…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
\Dis the negation of\d, i.e. it matches anything that is not a digit.