in reply to what it matches m##?
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.
|
---|