This should be a vary basic thing to do, but I can't get it to work despite following a lot of examples from the web. What I'm trying is to use the sub function to get the name of a file from a complete path.
So, if
output="/home/alvarofeal/Desktop/prueba_sub.avi"
re.sub(r'(.*\/)*', "", output)
print output
output: /home/alvarofeal/Desktop/prueba_sub.avi
Shouldn't the output be:
prueba_sub.avi