I'm trying to learn how to use regexps in lua but I see no results, so I'm asking for help.
I got two types of url:
I need to do two things:
I have written regex which retrieves me a filename from a first case:
similar regex retrives me a filename from second case:
Now can You tell me, how to merge this two regexs into one?
If those two cases are your only ones, matching for the filename is easy starting from the back:
For tossing out the comma separated part I'd resort to something like