Can someone please help on this? Python Question on Pattern Matching
I tried patterns like, import re
match1 = re.findall('[^rgb]$',i)
match2 = re.findall('file0[1]_?',i)
match3 = re.findall('file0[2]_?',i)
match4 = re.findall('file[1-9]',i)
match5 = re.findall('file[^0-9]',i)
It works, but I don't think it is dynamic. Can someone Provide the pattern?
Aucun commentaire:
Enregistrer un commentaire