RegularExpressionValidator syntax

  • Thread starter Thread starter Mark B
  • Start date Start date
M

Mark B

What would be the syntax for the ValidationExpression if I wanted it:

< > ' -- Select --'
 
What would be the syntax for the ValidationExpression if I wanted it:

< > ' -- Select --'

Why would you use a RegEx to check for a single string? RegEx is
most useful for pattern matching.

I take it you're doing client side validation? Just use the Compare
Validator.
 
Thanks. I previously thought Compare Validator could only compare fields but
not a field and a text string. Now thanks to you I see it can compare a text
value too.



What would be the syntax for the ValidationExpression if I wanted it:

< > ' -- Select --'

Why would you use a RegEx to check for a single string? RegEx is
most useful for pattern matching.

I take it you're doing client side validation? Just use the Compare
Validator.
 
Back
Top