3 ms·
Does it fail? I don't see ^ or $.
by dasil003 12y ago
Does it fail? I don't see ^ or $.
- mike-cardwell 12y agoI assumed it was anchored and he missed those off.
- ht_th 12y agoThe 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 12y agoThe 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"