Linked Questions

284 votes
18 answers
475k views

How to check for valid email address? [duplicate]

Is there a good way to check a form input using regex to make sure it is a proper style email address? Been searching since last night and everybody that has answered peoples questions regarding this ...
Bobby's user avatar
  • 4,532
154 votes
16 answers
518k views

JavaScript Regular Expression Email Validation [duplicate]

This code is always alerting out "null", which means that the string does not match the expression. var pattern = "^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$"; function isEmailAddress(str) { str = "...
azamsharp's user avatar
  • 20.1k
108 votes
7 answers
137k views

How to validate an Email address in Django? [duplicate]

I have written a function for adding emails to newsletter base. Until I've added checking validity of sent email it was working flawlessly. Now each time I'm getting "Wrong email" in return. Can ...
muntu's user avatar
  • 2,495
43 votes
6 answers
26k views

Valid email address regular expression? [duplicate]

I have done some testing but I wanted to ask if anyone sees a problem with this ruby regular expression for email validation: /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i Look good?
Tony's user avatar
  • 19.2k
30 votes
3 answers
28k views

PHP email validation [duplicate]

For PHP what is the best email validation using preg, NOT ereg because it's deprecated/removed. I don't need to check if the website exists (it's not like maximum security). I've found many ways ...
Mark Lalor's user avatar
  • 7,943
14 votes
7 answers
34k views

regex for email validation [duplicate]

I have written the regex below for a really simple email validation. I plan to send a confirmation link. /.*@[a-z0-9.-]*/i I would, however, like to enhance it from the current state because a string ...
ryonlife's user avatar
  • 6,673
12 votes
2 answers
27k views

find emails in a String [duplicate]

I am trying to get emails from a String which is like: "*** [email protected]&&^ [email protected]((& "; private static Pattern p = Pattern.compile("(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-...
Felix's user avatar
  • 1,263
8 votes
6 answers
62k views

Simple regex pattern for email [duplicate]

I've been trying to work this out for almost an hour now, and I can't see myself getting much further with it without any help or explanation. I've used regex before, but only ones that are very ...
Dog Lover's user avatar
  • 828
25 votes
1 answer
38k views

Regex validation of email addresses according to RFC5321/RFC5322 [duplicate]

Does anyone know a regex that validates email addresses according to RFC5321/RFC5322? Since (nestable) comments make the grammar irregular, only addresses without comments should be regarded. Of ...
Rinke's user avatar
  • 6,386
14 votes
2 answers
48k views

Email regular expression [duplicate]

Duplicate: What is the best regular expression for validating email addresses? I know this is a common question, but I still can't seem to find a great regular expression to use when validating email ...
Andrew Dunkman's user avatar
0 votes
4 answers
11k views

Using regex for simple email validation [duplicate]

Possible Duplicates: What is the best regular expression for validating email addresses? Is there a php library for email address validation? On my register form a user will add his email and ...
EnexoOnoma's user avatar
  • 8,880
6 votes
3 answers
7k views

Regular expression for valid email address? [duplicate]

Exact Duplicate: Using a regular expression to validate an email address What are valid email address characters and patterns and how would you write a regular expression which matches it?
Nick Van Brunt's user avatar
5 votes
7 answers
18k views

What is the correct regular expression for an email address? [duplicate]

Duplicate: Using a regular expression to validate an email address There seem to be an awful lot of different variants on this on the web and was wondering if there is a definitive answer? Preferably ...
AndyM's user avatar
  • 3,824
4 votes
2 answers
21k views

java code for regex of email validation [duplicate]

I tried to simulate email validation without regular expression in java and wrote this code. I need help to improve efficiency of this code (or give me a better way to solve this issue please) ...
sina pouya's user avatar
2 votes
6 answers
29k views

Pattern matching email address using regular expressions [duplicate]

Filter email address with regular expressions: I am new to regular expressions and was hoping someone might be able to help out. I am trying to pattern match an email address string with the ...
Brad's user avatar
  • 43

15 30 50 per page
1
2 3 4 5
59