add ability to strip off leading/trailing spaces from email regularExpressionValidator?

L

Les Caudle

I'd been using
[\w\.-]+(\+[\w-]*)?@([\w-]+\.)+[\w-]+
as the validator for an email address.

If the user enters a leading or trailing space, the email is invalid.

1. How exactly does one trim leading/trailing spaces with a
RegularExpressionValidator?

2. Even though no complaints on email being invalid besides this - are there
better validation strings for emails?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top