2 Replies - 1530 Views - Last Post: 25 June 2009 - 08:16 AM

#1 bodom658  Icon User is offline

  • Villiage Idiom
  • member icon

Reputation: 114
  • View blog
  • Posts: 1,123
  • Joined: 22-February 08

Valid Email Address

Posted 06 April 2009 - 04:07 PM

Description: Pretty simple, just enter into Regex search box, or use in your code as needed. Different programming languages will have different syntax. Add whatever other characters you wish to use into the Regex can be used to validate an email address entered into a form etc.
[A-Za-z._0-9-]{1,}@[A-Za-z-_0-9]{1,}.[A-Za-z0-9]{1,}

Is This A Good Question/Topic? 0
  • +

Replies To: Valid Email Address

#2 dsherohman  Icon User is offline

  • Perl Parson
  • member icon

Reputation: 227
  • View blog
  • Posts: 654
  • Joined: 29-March 09

Re: Valid Email Address

Posted 25 June 2009 - 03:15 AM

Note that a common convention for creating multiple inboxes is to use "[email protected]", but such addresses will be rejected by this regex, despite being valid and deliverable. (There are probably additional characters which may appear in the local-part of email addresses which are rejected by this regex, but "+" is by far the most common case of this type of problem.)
Was This Post Helpful? 0
  • +
  • -

#3 bodom658  Icon User is offline

  • Villiage Idiom
  • member icon

Reputation: 114
  • View blog
  • Posts: 1,123
  • Joined: 22-February 08

Re: Valid Email Address

Posted 25 June 2009 - 08:16 AM

this can be accomplished by simply placing a + inside the first set of []'s
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1