good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Regex to detect file nameby Laurent_R (Canon) |
on Jul 06, 2018 at 07:40 UTC ( [id://1218029]=note: print w/replies, xml ) | Need Help?? |
it is easy to do with two regexes, such as: ...Easy, perhaps, but wrong. The suggested two regexes would match a string starting with an underscore. Update (at 7:50 UTC): sorry, the last sentence below is wrong, I had missed the $ at the end of the first pattern.
In Section
Seekers of Perl Wisdom
|
|