G Guest Nov 20, 2004 #1 Is there any way that I can do a max and minmum length check and use a regular expression for the validation?
Is there any way that I can do a max and minmum length check and use a regular expression for the validation?
G Guest Nov 20, 2004 #2 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
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