def showSeason(file):
season = re.compile('([0-9]+)(?=([E|e|x|X]))')
m = season.match(file)
if m:
match = int(m.group())
return match
import re
file=" 1E 4E 09X "
season = re.compile('[0-9]+[EexX]')
m = season.findall(file)
print m
Returner til Utvikling i Linux
Registrerte brukere: Google [Bot]