RegularExpressionValidator syntax

M

Mark B

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

< > ' -- Select --'
 
L

Larry Bud

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.
 
M

Mark B

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,151
Messages
2,570,854
Members
47,395
Latest member
GennieGinn

Latest Threads

Top