SyntaxFix
Write A Post
Hire A Developer
Questions
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