Just another Perl shrine | |
PerlMonks |
Re^2: Regex to detect file nameby Laurent_R (Canon) |
on Jul 06, 2018 at 21:46 UTC ( [id://1218072]=note: print w/replies, xml ) | Need Help?? |
I think that you need to add an end-of-string anchor at the end of the pattern to prevent matching if there are some unwanted or spurious characters after the last character matching [\w.-].
In Section
Seekers of Perl Wisdom
|
|