I need to simplify the following regular expression to include all the letters of the alphabet:
(a{3})|(b{3})|(c{3})|(z{3})|(A{3})|(B{3})|(C{3})|(Z{3})
In practice I want to find all the sequences of same three chars, for example:
aaa
bbb
nnn
VVV
JJJ
and so on.
Use backreferences. Eg. in sed:
or in PERL regular expressions