473,396 Members | 1,786 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,396 software developers and data experts.

Regular Expression for Email

Hi all,
Can anyone tell me the validation Expression that matches all the following email groups

Chella Durai/FIH/FOXCONN@FOXCONN,--with single space
Def Y.L. Zhu/FIH/FOXCONN, -- with double dots and double space
GANESAN/FIH/FOXCONN, with no dots and no space.

Please help. thanks in advance .
Regards
sudha
Jul 16 '07 #1
9 1684
Hi all,
Can anyone tell me the validation Expression that matches all the following email groups

Chella Durai/FIH/FOXCONN@FOXCONN,--with single space
Def Y.L. Zhu/FIH/FOXCONN, -- with double dots and double space
GANESAN/FIH/FOXCONN, with no dots and no space.

Please help. thanks in advance .
Regards
sudha
Hi
Rather you try for a validation expression
try doing client side validation using java script

Srilakshmi
Jul 16 '07 #2
prabunewindia
199 100+
hi sudha,
try with this one
\w+([-+. ']*\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
Prabu

Hi all,
Can anyone tell me the validation Expression that matches all the following email groups

Chella Durai/FIH/FOXCONN@FOXCONN,--with single space
Def Y.L. Zhu/FIH/FOXCONN, -- with double dots and double space
GANESAN/FIH/FOXCONN, with no dots and no space.

Please help. thanks in advance .
Regards
sudha
Jul 16 '07 #3
prabunewindia
199 100+
try and reply
Prabu

Hi all,
Can anyone tell me the validation Expression that matches all the following email groups

Chella Durai/FIH/FOXCONN@FOXCONN,--with single space
Def Y.L. Zhu/FIH/FOXCONN, -- with double dots and double space
GANESAN/FIH/FOXCONN, with no dots and no space.

Please help. thanks in advance .
Regards
sudha
Jul 16 '07 #4
try and reply
Prabu
Hi Prabu,
I tried your expression but it isn't working. Anyother expression, can you suggest?
Thanks
Jul 16 '07 #5
prabunewindia
199 100+
hi i tried. its working
for what expression its not working

Hi Prabu,
I tried your expression but it isn't working. Anyother expression, can you suggest?
Thanks
Jul 16 '07 #6
hi i tried. its working
for what expression its not working
I have a tool to check these expression.In its search results its giving not even a single match. In your expression it fails to match the space,backslash upto @ symbol.after @ ".com" is optional. I dont know how to implement yet?
Thanks for your replies. I welcome if any suggestions from you.
thanks and sorry for late reply.
Jul 16 '07 #7
I have a tool to check these expression.In its search results its giving not even a single match. In your expression it fails to match the space,backslash upto @ symbol.after @ ".com" is optional. I dont know how to implement yet?
Thanks for your replies. I welcome if any suggestions from you.
thanks and sorry for late reply.
I tried this code its working to some extent.

Expand|Select|Wrap|Line Numbers
  1. \w+(\s)*(.)*\w+/*\@+(FOXCONN)?(foxconn)?(.)?(com)?
Any way I knew its not apt method. so still i am working on it. reply Mr. Prabu
Jul 16 '07 #8
prabunewindia
199 100+
hi sudha,
plz try with this
[a-z,A-Z,0-9,., ,]*@[a-z,A-Z,0-9,., ,]*

even its not standard,try and reply
Prabu

I tried this code its working to some extent.

Expand|Select|Wrap|Line Numbers
  1. \w+(\s)*(.)*\w+/*\@+(FOXCONN)?(foxconn)?(.)?(com)?
Any way I knew its not apt method. so still i am working on it. reply Mr. Prabu
Jul 16 '07 #9
hi sudha,
plz try with this
[a-z,A-Z,0-9,., ,]*@[a-z,A-Z,0-9,., ,]*

even its not standard,try and reply
Prabu
I tried your code. its working fine. but it validates only for @ symbol.Now i am using ur code only.Is there any syntax error in my expression?

\w+(\s)*(.)*\w+/*\@+((?i)foxconn)+(.)?(com)?
Jul 17 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Kenneth McDonald | last post by:
I'm working on the 0.8 release of my 'rex' module, and would appreciate feedback, suggestions, and criticism as I work towards finalizing the API and feature sets. rex is a module intended to make...
2
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...
6
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...
2
by: Dot net work | last post by:
Hello. Say I have a .net textbox that uses a .net regularexpressionvalidator. If the regular expression fails, is it possible to launch a small client side javascript function to do something,...
3
by: Joe | last post by:
Hi, I have been using a regular expression that I don’t uite understand to filter the valid email address. My regular expression is as follows: <asp:RegularExpressionValidator...
18
by: Q. John Chen | last post by:
I have Vidation Controls First One: Simple exluce certain special characters: say no a or b or c in the string: * Second One: I required date be entered in "MM/DD/YYYY" format: //+4 How...
5
by: Ryan | last post by:
HELLO I am using the following MICROSOFT SUGGESTED (somewhere on msdn) regular expression to validate email addresses however I understand that the RFP allows for "+" symbols in the email address...
4
by: rufus | last post by:
I need to parse some HTML and add links to some keywords (up to 1000) defined in a DB table. What I need to do is search for these keywords and if they are not already a link, and they are not...
1
by: Allan Ebdrup | last post by:
I have a dynamic list of regular expressions, the expressions don't change very often but they can change. And I have a single string that I want to match the regular expressions against and find...
5
by: shawnmkramer | last post by:
Anyone every heard of the Regex.IsMatch and Regex.Match methods just hanging and eventually getting a message "Requested Service not found"? I have the following pattern: ^(?<OrgCity>(+)+),...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.