VBdotnet2005
asked on
Regex - email
This is the email pattern I use to valid email address format. I just want to add "`" to this pattern. Sample john'ona.doe@mysite.com This is a good format.
^([\w\d\-\.]+)@{1}(([\w\d\ -]{1,67})| ([\w\d\-]+ \.[\w\d\-] {1,67}))\. (([a-zA-Z\ d]{2,4})(\ .[a-zA-Z\d ]{2})?)$
^([\w\d\-\.]+)@{1}(([\w\d\
ASKER
If that is the case, could you add that also?
^([\w\d\-\.\`\&]+)@{1}(([\ w\d\-]{1,6 7})|([\w\d \-]+\.[\w\ d\-]{1,67} ))\.(([a-z A-Z\d]{2,4 })(\.[a-zA -Z\d]{2})? )$
To add characters to the name portion, just add them inside the first set of square brackets. There are a bunch of possible characters missing from the pattern above (including: ! # $ % & ' * + - / = ? ^ _ ` . { | } ~), please see:
http://tools.ietf.org/html/rfc3696
That said, your expression does include some unnecessary redundancies (like "\w\d" which can be simplified to just \w). You may need to escape out some of the special characters (possibly including `) but not all of them.
http://tools.ietf.org/html/rfc3696
That said, your expression does include some unnecessary redundancies (like "\w\d" which can be simplified to just \w). You may need to escape out some of the special characters (possibly including `) but not all of them.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
is a valid email address that is not recognized by the above pattern