Is there an easy way of using the RegularExpressionValidator control while ignoring white space?
I can use a custom validator control with Regex and IgnorePatternWhitespace, but it would be good to just have an option in the RegularExpressionValidator control.
Surround your regex with
(?x: )
so "a b c" becomes "(?x:a b c)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With