Text: $1,123,123
CODE: re.findall(r'\$(?:[0-9]+,[0-9]+)+', text, re.I)
Expected result: $1,123,123
But I'm getting $1,123
Why is the (?:pattern)+ not repeating to capture the complete value?
Text: $1,123,123
CODE: re.findall(r'\$(?:[0-9]+,[0-9]+)+', text, re.I)
Expected result: $1,123,123
But I'm getting $1,123
Why is the (?:pattern)+ not repeating to capture the complete value?