473,699 Members | 2,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reg Expression - valid International email addresses?

Can anyone please help me with a regular expression
to test for Valid International Email Addresses?
Also, which version of javascript (1.2 ?) is needed for same?

Thanks.
Regards.
Jul 20 '05
14 8333
The pattern with + is just one. I'm still waiting on those thousands.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #11
Mark Szlazak wrote:
The pattern with + is just one. I'm still waiting on those thousands.

I think the idea is to build an array of every singly possible valid email
address. How long is an email address aloud to be? 255 characters for the
name part?, then 255 characters for the domain name part?...

so, all you need to do is build an array with
4.6531388344983 681457769984555 62e+613 elements, then check if the inputted
email address is in taht array.
Simple.

Jul 20 '05 #12
On 14 Jul 2003 01:17:35 GMT, Mark Szlazak <an*******@devd ex.com>
wrote:
The pattern with + is just one. I'm still waiting on those thousands.


You've already been given the link to the perl faq which contains a
RegExp many hundreds of chars long which is still not enough.

Jim.
--
comp.lang.javas cript FAQ - http://jibbering.com/faq/

Jul 20 '05 #13
On 14 Jul 2003 01:17:35 GMT, Mark Szlazak <an*******@devd ex.com>
wrote:
The pattern with + is just one. I'm still waiting on those thousands.


Underscore (_) for starters. 1999 more to go.

The point is that even with a perfect regular expression, you don't
have any idea whether the address is valid or not. It is impossible
to determine unless you send mail to the account and get a response
from the person. By attempting to validate the email address, all you
do is risk disallowing valid addresses. If you're going to do any
validation at all just check whether there is a @ and a subsequent .
character.

Whenever I sign up for something and I don't really want mail I always
use my old ISP's "bitbucket" address because the incoming mail goes
directly into the NUL device. It's very efficient.

Regards,
Steve
Jul 20 '05 #14
Two of my responses haven't posted over the last two days so I'll post
again and address Jim, John and Steve.

Jim now points to Tom's large regex and says that's still not enough.
Well it actually could be too much for someone else since patterns
may never occur in the wild! People may just be interested in whats
out there and if a simple regex email format validator good enough!

John talks about this when he mentions a topic related to reliability.
If a simple format checker is 99.99 percent reliable then what is the
significance of those false negatives? It maybe none. He also provides
a simple overall pattern but the OP may needs something more specific
to filter international emails ... whatever that means.

Steve then talks about two issues that are related but seperate. There
is the issue of a valid general email format and then the issue of
whether a specific instant of it exists.

I would be interested in some empirical data on what's out there and
how that has changed over time versus what's possible via specs.

Thanks.
Jul 20 '05 #15

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

Similar topics

2
3330
by: Hoang | last post by:
anyone know of an algorithm to filter out real email addresses as opposed to computer generated email addresses? I have been going through past email archives in order to find friends email address. Unfortunately about 75% of them are junk addresses or spammer addresses. It's quite obvious when you look at it and delete it... but you don't want to do it by hand.
9
1926
by: Holden Caulfield | last post by:
Hello! Does anyone know a good archive for all different types of Regular expressions? I am 90% done a website and the last 10% is putting validation on over 100 fields. They range from needing to: - verify valid email (I already have this reg exp) - verify hexadecimal number - verify name would be valid as a filename - phone number
2
18076
by: Bryce Budd | last post by:
Hi all, I am trying to use a regular expression validator to check for the existence of PO Box in an address textbox. The business rule is "No addresses with PO Boxes are allowed." What I want to happen is the Regular Expression Validator to return false only when the string contains PO Box. Currently it is false even when a valid address exists.
0
1535
by: Conference Secretary | last post by:
CALL FOR PAPERS International Conference on Intelligent Agents, Web Technologies and Internet Commerce http://www.ise.canberra.edu.au/conferences/iawtic05/ Jointly with International Conference on Computational Intelligence for Modelling, Control and Automation
12
3751
by: laurenq uantrell | last post by:
Is there an easy way to loop through all rows and remove all international alphabet characters from a column in a table, for example remove German umlauts "ü" and convert them to a simple "u". Thanks, lq
0
2195
by: avinash | last post by:
International Conference on Computational Intelligence and Multimedia Applications, August 16-18, 2005 University of Nevada, Las Vegas, USA (www.iccima.org) F I R S T C A L L F O R P A P E R S The International Conference on Computational Intelligence and Multimedia Applications will be held at the University of Nevada, Las Vegas, USA on August 16-18, 2005. The conference will provide an
6
489
by: JohnSouth | last post by:
Hi I've been using a Regular expression to test for valid email addresses. It looks like: \w+(\w+)*@\w+(\w+)*\.\w+(\w+)* I've now had 2 occassions where it has rejected and email address with a "&" character in the local part. I know I should be able to work it out myself, but I'd like to ask anyone to suggest the best way to
2
2785
by: Ramesh | last post by:
I have a reguar expression syntax that works fine when used in a RegularExpressionValidation control. If I use the exact same regular expression using System.Text.RegularExpressions.Regex to validate, it doesn't catch all invalid formats. This is for validating a single line text with multiple email addresses. Validation conditions apart from the common acceptable email formats are below: 1. the separator has to be either a comma or a...
12
4857
by: ll | last post by:
I am trying to finalize a regular expression in javascript to only allow emails with a certain domain to be valid. Here is what I have so far: var emailFilter2=/\@aol.com/; if(!(emailFilter2.test(strng))) { error = "Please enter a valid email address with the AOL domain.\n \n"; }
0
8687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8617
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9035
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8914
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7751
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6534
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.