I am trying to find a regular expression that parses a file and returns strings of 8 to 24 characters, which have:
- No specified character can be repeated 3 times or more (for example,
"^^^guga"or && & &&& & & gt; → →> <<)))) && &>) and - There are no 2 consecutive repeating patterns in this line (for example,
"123123"either abcabcabcdfg, or 3 ###### u3 ###### u3 ###### u)
Note. A line cannot have empty / empty space and can consist of any character that you can enter on a standard keyboard. (example 0-9a-zA-Z~!@#$%^&*()_+=-\|][{}:;"'?/.>,<`) I think I have all of them;)
Sample text
=>d`m\cc!=>d`m\cc!=>d`m`\cc!=>d`m\cc0!=>d
I*dKoc,I*dKoc,I*dKoc,I*dKoc,I*dKoc, instance463instance464 Wc^^^7HjkKlp
)FC7h
Output (only 3 lines are valid)
instance463instance464
)FC7h
source
share