Regex match any character 5 or more times

Viewed 33599

I have this regex pattern:

^[.]{5,}$

Which I want to return true if the tested string has 5 or more characters.

I.E it'll only return false if the string contains 4 or less characters.

At the moment it seems to return true regardless of the number of characters and I can't see why.

3 Answers
Related