recent perls with warnings and strict enabled would have given you a warning:use warnings; use strict; my $a = 'L:\\Data\\5555\\'; $a =~ s#l:\\Data\\([0-9]*)\\#D:\\Sites\\$1\\Data\\#i; print $a;
Unrecognized escape \D passed through at FILENAME line NUMBER.
In reply to Re: Escaping confusion in RE...
by Joost
in thread Escaping confusion in RE...
by freddo411
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |