Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dasil003
on Sept 24, 2014
|
parent
|
context
|
favorite
| on:
Full email validation regex (RFC 2822)
Does it fail? I don't see ^ or $.
ht_th
on Sept 24, 2014
|
next
[–]
The regexp looks for exactly one '@'-character preceded and followed by at least one character that's not an '@'-character. Or, in other words, it does not allow for an email address with more than one '@'-character.
rplnt
on Sept 24, 2014
|
parent
|
next
[–]
The point of the post was that since the regexp doesn't include start or end of a string it would still succeed:
"Foo@bar"@example.com -> "Foo@bar"
mike-cardwell
on Sept 24, 2014
|
prev
[–]
I assumed it was anchored and he missed those off.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: