Reputation: 516
I am struggling to make a javascript regex to satisfy the following:
[a-zA-Z]
)So here is what I found Regex:
/^[a-z][\s\w.-]{3,24}$/i
My current regex works, but won't be able to test whether the user has written consecutive spaces. How can I test for that?
Upvotes: 2
Views: 3474