Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > add ability to strip off leading/trailing spaces from email regularExpressionValidator?

Reply
Thread Tools

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

 
 
Les Caudle
Guest
Posts: n/a
 
      03-07-2004
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?
--
Thanks in advance, Les Caudle
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
strip all but second second line from bottom and then strip that!!!! yelipolok Perl Misc 4 01-27-2010 08:14 AM
need to strip stuff off email John Roth Python 4 06-22-2005 10:28 AM
Strip white spaces from source qwweeeit@yahoo.it Python 5 05-10-2005 04:26 PM
strip and its evil brother strip! Aquila Ruby 35 03-31-2005 04:10 AM
Lose ability to get on/off line (via dial up) using wireless card hmc Wireless Networking 0 06-18-2004 09:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57