I'm experiencing some problems implementing a regular expression for a repeating string pattern.
>>> re.findall('(\(\w+,\d+\)(?:,)?)+', '(a,b),(c,d),(e,f)')
['(e,f)']
I would like ro get the other items as well
Help would be really appriciated
I'm experiencing some problems implementing a regular expression for a repeating string pattern.
>>> re.findall('(\(\w+,\d+\)(?:,)?)+', '(a,b),(c,d),(e,f)')
['(e,f)']
I would like ro get the other items as well
Help would be really appriciated