Don't ask to ask, just ask | |
PerlMonks |
Re: what it matches m##?by ExReg (Priest) |
on Feb 26, 2016 at 17:42 UTC ( [id://1156246]=note: print w/replies, xml ) | Need Help?? |
The [^/] means anything not a /. The * means 0 or more of those characters. The $ means at the end of the line. So the whole thing will match any characters at the end of the line that are not /'s. Typically if you have a filename with its path, this will capture everything after the last slash: the filename.
In Section
Seekers of Perl Wisdom
|
|