B
Brian Simmons
Hi All,
I've got a textbox where I want to make sure the person has entered at least
3 characters before submitting (it's like a partial name lookup type of
query), so I don't want them to just enter "a" or "e" in the box and bring
back everyone with an "a" or "e" in their name.
I figure that a regular expression validation is the way to go, and I tried
this:
ValidationExpression="^([a-zA-z0-9\s]{3,255})$"
However, this doesn't work all the time, because a user can enter "dr." or
"st." and that is 3 characters but the validation fails, because the "." is
not recognized as a character.
So, can some kind soul help me out with the accurate regular expression for
what I want to accomplish?
Thanks,
Brian
I've got a textbox where I want to make sure the person has entered at least
3 characters before submitting (it's like a partial name lookup type of
query), so I don't want them to just enter "a" or "e" in the box and bring
back everyone with an "a" or "e" in their name.
I figure that a regular expression validation is the way to go, and I tried
this:
ValidationExpression="^([a-zA-z0-9\s]{3,255})$"
However, this doesn't work all the time, because a user can enter "dr." or
"st." and that is 3 characters but the validation fails, because the "." is
not recognized as a character.
So, can some kind soul help me out with the accurate regular expression for
what I want to accomplish?
Thanks,
Brian