I am trying to design a regex where the first 8 letters are the same.
Examples:
oooooooo34reefe
aaaaaaaafsfdew4regr4
llllllllsftgerf
qqqqqqqqdhiocdnsfncdops
Thanks for your help.
I am trying to design a regex where the first 8 letters are the same.
Examples:
oooooooo34reefe
aaaaaaaafsfdew4regr4
llllllllsftgerf
qqqqqqqqdhiocdnsfncdops
Thanks for your help.
Try this Regex:
^(.)\1{7}
^ is the start of the line. You would get more matches otherwise.(.) matches a character and captures it (in case the ^ is used, it becomes the first character)\1 express that the captured character must occur there{7} ... seven times (since the first one has been already matched, 7 out of 8 left)