K
Kate Bieren
This should be easy but I am brand new to regular expressions so hopefully
someone can help me. I want to do some simple field level validation in my
app and I can do a simple test to see if the value entered in a textbox
matches a value I am expecting -
RegEx.IsMatch(textbox.text,"^LS$"). - So this will return true if my
textbox.text is "LS".
What I want to do though, is to know if the value in my textbox.text does
NOT match "LS".
I know this is lame because obviously I could just say:
if not(regex.ismatch(textbox.text,"^LS$") then....
but I am trying to right some dynamic code to do the validating and I don't
want to have to know if I am testing for true or false.
Does this make sense? Can anyone help me?
someone can help me. I want to do some simple field level validation in my
app and I can do a simple test to see if the value entered in a textbox
matches a value I am expecting -
RegEx.IsMatch(textbox.text,"^LS$"). - So this will return true if my
textbox.text is "LS".
What I want to do though, is to know if the value in my textbox.text does
NOT match "LS".
I know this is lame because obviously I could just say:
if not(regex.ismatch(textbox.text,"^LS$") then....
but I am trying to right some dynamic code to do the validating and I don't
want to have to know if I am testing for true or false.
Does this make sense? Can anyone help me?