I need some help with RegEx:
Let's say there is a string containing text and numbers, for example: 123456 this is text, ABC 56789 this is second text 45, 74930 this is third text
I need to extract numbers from that string which are longer than 3 digits, but also only not those which are preceded by ABC.
So the result for the above example should be 123456 and 74930 and NOT 56789 nor 45
Excluding shorter numbers is easy with the expression: \d{3,} (I used Tokenize option in RegEX tool)
I also managed to extract the number after ABC only: (?:ABC.?)(\d{3,}) (also Tokenize option), but how to define expression that this number will be skipped?
One additional comment: the seqence of ABC [number] can appear several times in the text, so all instances should be skipped