-1

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?

aste123
  • 1,159
  • 2
  • 17
  • 40

0 Answers0