O
Odd-R.
Input is a string of four digit sequences, possibly
separated by a -, for instance like this
"1234,2222-8888,4567,"
My regular expression is like this:
rx1=re.compile(r"""\A(\b\d\d\d\d,|\b\d\d\d\d-\d\d\d\d,)*\Z""")
When running rx1.findall("1234,2222-8888,4567,")
I only get the last match as the result. Isn't
findall suppose to return all the matches?
Thanks in advance.
separated by a -, for instance like this
"1234,2222-8888,4567,"
My regular expression is like this:
rx1=re.compile(r"""\A(\b\d\d\d\d,|\b\d\d\d\d-\d\d\d\d,)*\Z""")
When running rx1.findall("1234,2222-8888,4567,")
I only get the last match as the result. Isn't
findall suppose to return all the matches?
Thanks in advance.