I'm using Python 2.6.9 for some regex, and I have the following string, where I'd like to match 111,111,111 and 222,222, but not the dollar amounts.
This is my current best attempt:
regexObj = re.compile(r'(?<!\$)\d{3}(?:,\d{3})*')
testStr1 = '111,111,111 and 222,222 but not $333,333,333 or $444,444'
regexObj.findall(testStr1)
['111,111,111', '222,222', '333,333', '444']
Can someone help out?
Thanks!