python3 mystery

Tim Chase blinux.list at
Tue Sep 15 12:19:18 UTC 2015

On September 15, 2015, Jude DaShiell wrote:
> ages=re.findall(r'\d[1,3]',examplestring)

This should use curly-braces:


instead of square braces, and this

> names=re.findall(r'[A,Z][a,z]*',examplestring)

should use a dash for the range instead of commas:


which you might want to tweak for names like "MacArthur" in which
case you'd want


Hope this helps,


More information about the Blinux-list mailing list