I\'m trying to write a regex that will parse out the directory and filename of a fully qualified path using matching groups.
so...
/
A very late answer, but hope this will help
^(.+?)/([\w]+\.log)$
This uses lazy check for /, and I just modified the accepted answer
http://regex101.com/r/gV2xB7/1