An example of a matching line is: Gutter, Rubbing, Nomad, Among, Nit, Turret, Tug
This line contains 3 words that all have 2 consecutive identical letters.
I'm currently using the following regex expression with the grep -P command:
This regex works but when I have the following line for example:
Gutter, Rutting, Nomad, Among, Nit, Turret, Tugekekekekekekekekekekeke I get a catastrophic backtracking error on regex101.com (https://regex101.com/r/3YFCAj/1).
How can I search for this regex without that backtracking problem?