Is there a way to specify a regular expression to match every 2nd occurrence of a pattern in a string?
Examples
Use grouping.
foo.*?(foo)