Counting elements in a list wildcard

Edward Elliott nobody at 127.0.0.1
Wed Apr 26 13:37:18 EDT 2006


Iain King wrote:
> steven = re.compile("Ste(v|ph|f|ff)(e|a)n")

Also you can expand the RE a bit to improve readability:

re.compile("Stev|Steph|Stef|Steff)(en|an)")





More information about the Python-list mailing list