34 how to optimize regular expression for letters of the Russian alphabet in 1?

0 like 0 dislike
76 views
re:\\a{3,}|AAA
re:\\W{3,}|BBB
re:\\in{3,}|BBB
re:\\g{3,}|GGG
re:\\d{3,}|DDD
re:\\s{3,}|Eee

абвгдеежзийклмнопрстуфхцчшщъыьэюя
by | 76 views

2 Answers

0 like 0 dislike
To use a backreference
try something like this:

re:([a-za-z])\\1{2,}|\\1\\1\\1
by
0 like 0 dislike
re:([a-ll])\\1{2,}
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
2,843 users