I am trying to write a regular expression which would match any occurrence of ABC following XYZ anywhere in the string :
Ex. text – “Some ABC text followed by XYZ followed by multiple ABC, more ABC, more ABC”
i.e., the regex should match three ABC’s coming after XYZ.
Any clues?
You could take an iterative approach:
Output: