I want to allow (.) and (a-zA-Z) letters and _ and - , I have some problems with the (.) ,
Any idea ?
Thanks in advance ,
Ish
This will do [a-zA-Z_.-]+
[a-zA-Z_.-]+
Outside the character class, ([]), you need to escape the dot (\.)as it is a meta character.
[]
\.
[a-z]+\.com #matches `something.com`