good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Regex to extract last 3 components of filenameby 1nickt (Canon) |
on May 04, 2021 at 21:46 UTC ( [id://11132043]=note: print w/replies, xml ) | Need Help?? |
Because your regexp is greedy. See also Breaking file path into segments, perlretut. Hope this helps!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|