J
Jason
Hi ,
I'm attempting to use the Regular Expression Validator to cehck for
the following conditions:
<sequence of letters><sequence of numbers>
or
<sequence of letters><sequence of numbers> \ <sequence of numbers>
or
<sequence of letters><sequence of numbers> \ <sequence of numbers> \
<sequence of numbers>
the first condition is obviously easy, I can put [a-z|A-Z]+[0-9]+ and
it works fine, my problem occurs when trying to get the validator to
check for a literal backslash. I've checked many articles on this now
and all say the method I've been using ( i.e. using \\ or \\\\) should
work but it very clearly does not! Anyone know what the correct use
is? I've been setting this in the ValidationExpression property of the
control.
I'm attempting to use the Regular Expression Validator to cehck for
the following conditions:
<sequence of letters><sequence of numbers>
or
<sequence of letters><sequence of numbers> \ <sequence of numbers>
or
<sequence of letters><sequence of numbers> \ <sequence of numbers> \
<sequence of numbers>
the first condition is obviously easy, I can put [a-z|A-Z]+[0-9]+ and
it works fine, my problem occurs when trying to get the validator to
check for a literal backslash. I've checked many articles on this now
and all say the method I've been using ( i.e. using \\ or \\\\) should
work but it very clearly does not! Anyone know what the correct use
is? I've been setting this in the ValidationExpression property of the
control.