Just another Perl shrine | |
PerlMonks |
Re^4: Regex to detect file nameby Laurent_R (Canon) |
on Jul 05, 2018 at 21:56 UTC ( [id://1218006]=note: print w/replies, xml ) | Need Help?? |
Hm, I think I understand the problem. The OP's regex:
actually has a negative character class (leading ^), rather than a start-of-string anchor. So the OP had to negate the pattern. My guess is that the OP really meant: Update: fixed a typo: s/or-string/of-string/
In Section
Seekers of Perl Wisdom
|
|