Max Length Control Regular Expression

G

Guest

Is there any way that I can do a max and minmum length
check and use a regular expression for the validation?
 
G

Guest

Yes, I think this will do it: ^[\w]{6,13}$

Check out regexlib.com for all the details. Note the [\w] -- it's where you
specify the characters you want to allow (the "cheat sheet" at regexlib has
the complete list). In this case, \w is a-z, A-Z, underscore, and 0-9.

hth,

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top