Reputation: 2232
The regexp what i'm searching for is :
Examples :
test1546 = OK
vqa._96 = OK
1test_ = KO
_test1546 = KO
Thank's a lot! ;)
Upvotes: 1
Views: 99
Reputation: 839114
Try this regular expression:
/^[a-zA-Z]{3}[\w.-]*$/
Explanation:
^
matches the start of the string.$
matches the end of the string.[a-zA-Z]{3}
means match three letters.\w
matches [A-Za-z0-9_]
.Upvotes: 4