On 29 Dec, 20:23, Frank Rizzo <n...@none.netwrote:
Hello,
Trying to setup RegularExpressionValidator to validate a textbox. *I am
trying to make sure that the user enters the word Green. *The case does
not matter.
However, i am totally new to Regex. *Could I get some help?
Thanks.
Hi Frank
It just so happens that I too have been delving into the undergound
world of "Regular expressions" recently. My need was a bit more
complex than yours though.
I'm going to assume at this point that if you were given a patterrn
string you can do the rest. How about
:
"(green)+"
when you create the Regex object there is a parameter that specifies
"ignore case". Check it out.
To decide whether it occurs or not you only need to test the "success"
property of the "match" object.
I hope I've pitched the above at the right level, let me know
otherwise.