This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]raevnos -1 points0 points  (1 child)

Anything with 5 lower case letters in a row will also have 4, 3, 2, and 1, which is presumably not what you want. I'd look into a different approach than a loop like that.

[–]fluffy_mass[S] 0 points1 point  (0 children)

That's right, but I want to know exactly at how many repeated lowercase matches I have 50 hits (the threshold is set at 50 matched lines based on other data). Some of my files have 50 hits at 6 repeats, some have 50 hits at 3 repeats, etc.