Thursday, October 28, 2021

[SOLVED] Use grep to find strings with consecutive same letters

Issue

How to use grep -iE to find strings with 2 groups of consecutive same letters. The 2 groups do not overlap. Only grep e is allowed.


Solution

already found the answer:

grep -iE '([a-z])\1.*([a-z])\2'


Answered By - boygood