Handy: A regex that validates all valid email addresses (give or take) - Axon Flux // A Ruby on Rails Blog

Updated . Posted . Visible to the public. Deprecated.

/^([\w!#$%&'*+-/=?^`{|}~]+.)*[\w!#$%&'*+-/=?^`{|}~]+@((((([a-z0-9]{1}[a-z0-9-]{0,62}[a-z0-9]{1})|[a-z]).)+[a-z]{2,6})|(\d{1,3}.){3}\d{1,3}(:\d{1,5})?)$/i

Last edit
Keywords
development
License
Source code in this card is licensed under the MIT License.
Posted by Lexy to makandra dev (2010-05-29 08:47)