I am validating an email field and I'm using the regular expression validator to verify the email is valid. However, when there is an extra space before or after the email address, the validator see the email adress as invalid.
How can I trim the value of the email field before the email validator runs? I'm running the validators server-side at runtime.
I can use the trim method, but where do I trim the value of the text field before the validation runs?
Thanks for any help.
Start Free Trial