M
mhearne808[insert-at-sign-here]gmail[insert-dot-he
Here's a scenario:
import re
m = re.search('e','fredbarneybettywilma')
Now, here's a stupid question:
why doesn't m.groups() return ('e','e','e').
I'm trying to figure out how to match ALL of the instances of a
pattern in one call - the group() and groups() return subgroups... how
do I get my search to get me all of the matching subgroups?
import re
m = re.search('e','fredbarneybettywilma')
Now, here's a stupid question:
why doesn't m.groups() return ('e','e','e').
I'm trying to figure out how to match ALL of the instances of a
pattern in one call - the group() and groups() return subgroups... how
do I get my search to get me all of the matching subgroups?