Need to add underscore to my regex
Posted
by TaMeR
on Stack Overflow
See other posts from Stack Overflow
or by TaMeR
Published on 2010-04-16T12:02:29Z
Indexed on
2010/04/16
12:13 UTC
Read the original article
Hit count: 349
I suck at regular expression and just can't seem to figure this out.
'/^[A-Za-z0-9](?:.[A-Za-z0-9]+)*$/'
As it's right now it allows dots anytime after the first char and I like to add _
so that it allows both.
Thanks
© Stack Overflow or respective owner