In some code that I support, I found an expression:
$r->{DISPLAY} =~ s/\Device//s;
What surprises me is that it matches both the device and the device!
I did not find mention of \ D in the documentation, only \ d.
Can someone clarify please ...
regex perl
Roger
source share