|
-
Oct 7th, 2002, 01:21 PM
#1
Thread Starter
Frenzied Member
txtbox validation
I have a txtbox on my web form. I need to check if the second character is a "C" and the next three characters are numeric. Is there a way I can do this with the RegularExpressionValidator?
thanks,
eye
-
Oct 7th, 2002, 01:25 PM
#2
hmm...I THINK
[C]\d\d\d
might be the reg expression.. at least that is the best I can figure out from my book which only has very little info on it
the [C] mean the letter c and \d mean any digit from 0-9
-
Oct 7th, 2002, 01:31 PM
#3
Re: txtbox validation
Originally posted by EyeTalion
I have a txtbox on my web form. I need to check if the second character is a "C" and the next three characters are numeric. Is there a way I can do this with the RegularExpressionValidator?
thanks,
eye
oops..second character
[a-z][c]\d\d\d
-
Oct 7th, 2002, 01:41 PM
#4
shorter version
[a-z][c]\d{3}
-
Oct 7th, 2002, 01:54 PM
#5
Thread Starter
Frenzied Member
error message is still popping up. I'm using "[a-z][c]/d{3}" and placing this value in my textbox "1c234"
I'll keep ya posted...
-
Oct 7th, 2002, 01:56 PM
#6
try this one
[a-zA-Z0-9][cC]\d{3}
that will let any letter or number(upper or lower case) for first
c(upper or lower case) for second, then 3 digits.
-
Oct 7th, 2002, 02:00 PM
#7
Thread Starter
Frenzied Member
it's working....I was placing a digit in the first value...d'uh!
thanks
-
Oct 7th, 2002, 02:01 PM
#8
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|