S
Shaun Wilde
When using the regular expression validator is there a way of failing a
validation when you detect a match - I suppose a sort of anti-match.
I want to detect certain things on user input and if they exist then fail
client-side validation.
An example would be detecting html input, a simple test of which would be to
look for '<[a-zA-z]',
but I would like to fail if this sequence is detected anywhere in a
multiline string.
Is there a way or is it down to server-side validation only?
Shaun
PS. I am still validating the input on the server-side I just wanted to cut
down on round trips
validation when you detect a match - I suppose a sort of anti-match.
I want to detect certain things on user input and if they exist then fail
client-side validation.
An example would be detecting html input, a simple test of which would be to
look for '<[a-zA-z]',
but I would like to fail if this sequence is detected anywhere in a
multiline string.
Is there a way or is it down to server-side validation only?
Shaun
PS. I am still validating the input on the server-side I just wanted to cut
down on round trips