I am trying to extract url with match. I'm trying to find the filename after the "/" character. But url is always variable so i have to start from end
123
, 123.py
, 123.dat
url://xxxxx/yyyyy/123
url://xxxxx/yyyyy/123.py
url://xxxxx/yyyyy/123.dat
I tried url:match("^.+(%..+)$")
but I can't access files that don't start with a .
.