Linked Questions

284 votes
18 answers
476k views

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
155 votes
16 answers
519k views

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

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

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

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

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

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
63k views

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
39k views

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

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

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

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

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

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

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