Regex to match 4 repeated letters in string using java pattern

Posted by Anonymous user on Stack Overflow See other posts from Stack Overflow or by Anonymous user
Published on 2010-04-12T14:26:28Z Indexed on 2010/04/12 14:33 UTC
Read the original article Hit count: 248

Filed under:
|
|
|

i want to match something like aaaa, aaaad, adjjjjk. Something like this ([a-z])\1+ was used to match the repeated characters but i am not able to figure this out for 4 letters.

© Stack Overflow or respective owner

Related posts about repeated

Related posts about characters