Ask a Question related to ASP.NET General, Design and Development.
-
Learning SQL Server #1
Email RegularExpression not working
The email reg exp that ships with the RegularExpressionValidator doesnt like
this email address:
[email]user@blah.ru[/email]
Or any other email domain that contains only 2 letters after the dot.
It *looks* like it should (I notice the qualifier at the end of the
statement for 2 or more letters), but the validator always fires anyway.
Anyone else notice similar behavior or do I just need some sleep?
Learning SQL Server Guest
-
'Send a review' email not working
When my client attempts to 'Send a review' via email, she gets the following email message: The server could not be found. Account:... -
#15373 [Com]: mail() not working, no error with invalid SMTP or email address
ID: 15373 Comment by: doug32x at hotmail dot com Reported By: alonso at admintek dot net Status: No Feedback... -
Mailto: with query for email list not working
I am managing a website for a membership-based organization and one of the things I am doing for them is giving them an easy way to email to the... -
ASP Email - CDONTS - AttachFile - Getting it embeded in the email
I am unable to get my file attachment in the email => Here is what my code looks like - which is very simple from the documentation that I have... -
Email from website function not working
I used Publisher to create a website in which I want to be able for users to complete a form, press the submit button and the site will then email... -
Seaside #2
Re: Email RegularExpression not working
try validationExpression="\S+@\S+\.\S{2,3}"
"Learning SQL Server" <no.mail.com> wrote in message
news:ueVefkOXDHA.536@TK2MSFTNGP10.phx.gbl...like> The email reg exp that ships with the RegularExpressionValidator doesnt> this email address:
>
> [email]user@blah.ru[/email]
>
> Or any other email domain that contains only 2 letters after the dot.
>
> It *looks* like it should (I notice the qualifier at the end of the
> statement for 2 or more letters), but the validator always fires anyway.
> Anyone else notice similar behavior or do I just need some sleep?
>
>
>
>
Seaside Guest
-
Colin Young #3
Re: Email RegularExpression not working
This is the one I use:
[\w-.]+?@([\w-]+?\.)+[\w]{2,}
I've tested it fairly extensively, including a couple of embarassing
incidents where potential customers trying to register emailed me to tell me
that my form wouldn't accept their email address, resulting in the included
regular expression.
I haven't had any emails for a while now to tell me I'm rejecting valid
addresses.
Colin
"Learning SQL Server" <no.mail.com> wrote in message
news:ueVefkOXDHA.536@TK2MSFTNGP10.phx.gbl...like> The email reg exp that ships with the RegularExpressionValidator doesnt> this email address:
>
> [email]user@blah.ru[/email]
>
> Or any other email domain that contains only 2 letters after the dot.
>
> It *looks* like it should (I notice the qualifier at the end of the
> statement for 2 or more letters), but the validator always fires anyway.
> Anyone else notice similar behavior or do I just need some sleep?
>
>
>
>
Colin Young Guest
-
Learning SQL Server #4
Re: Email RegularExpression not working
Colin:
I was looking at another expression *sheepish grin*
"Colin Young" <x@nospam.com> wrote in message
news:OqNdToQXDHA.536@TK2MSFTNGP10.phx.gbl...me> This is the one I use:
>
> [\w-.]+?@([\w-]+?\.)+[\w]{2,}
>
> I've tested it fairly extensively, including a couple of embarassing
> incidents where potential customers trying to register emailed me to tellincluded> that my form wouldn't accept their email address, resulting in the> regular expression.
>
> I haven't had any emails for a while now to tell me I'm rejecting valid
> addresses.
>
> Colin
>
> "Learning SQL Server" <no.mail.com> wrote in message
> news:ueVefkOXDHA.536@TK2MSFTNGP10.phx.gbl...> like> > The email reg exp that ships with the RegularExpressionValidator doesnt>> > this email address:
> >
> > [email]user@blah.ru[/email]
> >
> > Or any other email domain that contains only 2 letters after the dot.
> >
> > It *looks* like it should (I notice the qualifier at the end of the
> > statement for 2 or more letters), but the validator always fires anyway.
> > Anyone else notice similar behavior or do I just need some sleep?
> >
> >
> >
> >
>
Learning SQL Server Guest
-
Chris R. Timmons #5
Re: Email RegularExpression not working
"Learning SQL Server" <no.mail.com> wrote in
news:ueVefkOXDHA.536@TK2MSFTNGP10.phx.gbl:
Here's a regex I use to validate e-mail addresses:> The email reg exp that ships with the RegularExpressionValidator
> doesnt like this email address:
>
> [email]user@blah.ru[/email]
>
> Or any other email domain that contains only 2 letters after the
> dot.
>
> It *looks* like it should (I notice the qualifier at the end of
> the statement for 2 or more letters), but the validator always
> fires anyway. Anyone else notice similar behavior or do I just
> need some sleep?
^[-a-zA-Z0-9][-.a-zA-Z0-9]*@[-.a-zA-Z0-9]+(\.[-.a-zA-Z0-
9]+)*\.(com|edu|info|gov|int|mil|net|org|biz|name|mu seum|coop|aero|pr
o|[a-zA-Z]{2})$
Hope this helps.
Chris.
-------------
C.R. Timmons Consulting, Inc.
[url]http://www.crtimmonsinc.com/[/url]
Chris R. Timmons Guest



Reply With Quote

