Title: PHP BEst
Name: Shashank
Date: 11/21/2017 12:08:01 PM
Comment:
Best Regex For Alphanumeric
Title: Number not mandatory
Name: Lakshmanan
Date: 1/29/2009 11:35:28 PM
Comment:
Number is not mandatory in my case, so how can i use this expression.
Title: Simple and to the Point
Name: Kevin
Date: 6/13/2008 12:25:08 AM
Comment:
This was exactly what I was looking for and is a true definition of begin alphanumeric. It is is either alphabetical, numerical, or alphanumeric. So many examples just didn't see this.
I tried to do this on my own and it got really complex and wasn't very flexible. I like your solution better. Thanks for the post.
Title: Simple and to the Point
Name: Kevin
Date: 6/13/2008 12:24:50 AM
Comment:
This was exactly what I was looking for and is a true definition of begin alphanumeric. It is is either alphabetical, numerical, or alphanumeric. So many examples just didn't see this.
I tried to do this on my own and it got really complex and wasn't very flexible. I like your solution better. Thanks for the post.
Title: Brillant
Name: Bea
Date: 3/16/2008 7:19:13 PM
Comment:
You actually sort out my problem! thanks mate
Title: Changes
Name: Eli Jurado
Date: 10/13/2006 2:10:33 PM
Comment:
If I need that my string acept at least one non-alphanumeric character, What change I need do?
Title: Good, second Chandan's recommendation
Name: cranbo
Date: 6/16/2005 7:38:44 PM
Comment:
Would love to see this so it requires 3 of 4:
one lower, one upper, one number, one non-word (special char)
In any case, thanks for the ideas!
Title: Good
Name: Chandan
Date: 3/8/2005 4:42:47 AM
Comment:
Good for One Numeric & One Alpha. but Can You provide at least one numeric, ome lower alpha., one upper aplha. with range.
Title: Thanks
Name: Pete
Date: 10/27/2004 10:44:32 AM
Comment:
Thanks for the addition. Looks to do a good job beefing it up.
Title: Addition
Name: Cstick
Date: 10/25/2004 10:39:45 AM
Comment:
(?!^[0-9]*$)(?!^[a-zA-Z_@]*$)(?!^[0-9_@]{1})^([a-zA-Z0-9_@]{6,16})$
I added to yours so that it tests that string is not all "_" or "@", does not start with 0-9, "_", or "@", must start with a letter and must include at least one number, string must be between 6-16 characters long.
Your expression was the easiest for me to build on. Thx.