473,418 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

Email Address Expression Validation Issue

Hi there,
I need help pls..I'm using c# on a webform and I have this regex validation
for email addresses: ValidationExpression
="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* "
I'm having isssues when submit an email with single quotes --example
ja**********@yahoo.com -- I would like to be able "to allow" single quote on
the email address. Can anyone help me out !!
Thanks ahead,

Angel
Nov 22 '05 #1
2 3035
"Angel" <An***@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
Hi there,
I need help pls..I'm using c# on a webform and I have this regex
validation
for email addresses: ValidationExpression
="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* "
I'm having isssues when submit an email with single quotes --example
ja**********@yahoo.com -- I would like to be able "to allow" single quote
on
the email address. Can anyone help me out !!


That single quote is not valid in an email address.

John Saunders
Nov 22 '05 #2


"John Saunders" wrote:
"Angel" <An***@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
Hi there,
I need help pls..I'm using c# on a webform and I have this regex
validation
for email addresses: ValidationExpression
="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* "
I'm having isssues when submit an email with single quotes --example
ja**********@yahoo.com -- I would like to be able "to allow" single quote
on
the email address. Can anyone help me out !!


That single quote is not valid in an email address.

John Saunders


As I've always adhered to, yet annoyingly it seems some ISPs don't behave
themselves and have handed or allowed emails with a single apostrophe.

I've come across it once in the past where I've had complaints from people
with illegal apostrophes in their addresses and them not being able to get
through my validation.
Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: Dynamo | last post by:
Hi The following script was taken from John Coggeshall's (PHP consultant) in his article on Zends site at http://www.zend.com/zend/spotlight/ev12apr.php // Get the email address to validate...
2
by: Angel | last post by:
Hi there, I need help pls..I'm using c# on a webform and I have this regex validation for email addresses: ValidationExpression ="\w+(\w+)*@\w+(\w+)*\.\w+(\w+)* " I'm having isssues when submit...
117
by: Steevo | last post by:
Any suggestions as to the best programs for cloaking email addresses? Many thanks -- Steevo
2
by: AGGoogle | last post by:
I might be doing something stupid here but I really need some help. Can someone please tell me why can't I get this xml to pass my validation when I use XmlValidatingReader? The XMLSpy seems to...
2
by: Coleen | last post by:
I can't remember the correct way to write a custom regular expression validator, and the help file for VB.net is not terribly helpful...it does not give any real world examples. I've got the main...
5
by: Chris | last post by:
Based upon some prevoius postings on what to do for adding a 'add' row to a datagrid I utilize the footer to create the 'add' row. The only issue is that I have it sharing the 'UpDate_Command' and...
35
by: Mika M | last post by:
Simple question: Does Framework (1.1) contain any routine to check entered email-address is valid ? It's quite easy to make own code for that purpose, but why to do if Framework (1.1) contain...
9
by: chadlupkes | last post by:
I have this code from someone else, and I'm trying to make heads or tails of it because IE doesn't like it. Can anyone help? Or does anyone have a better idea? /* parse the email to check for...
2
by: Keith G Hicks | last post by:
I'm using the following code to send out email messages to a list of people in a database. My problem is that if I'm sending to 100 people and the 40th address is bad, it crashes on that one and...
4
by: JvC | last post by:
Does anyone have a good routine for EMail address validation? The one that I use is fairly primitive, and I need to beef it up. I have downloaded several from the web, and they all get screwed up...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.