Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
RFC822 email regex, with patches
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
rfc822.rb

README

#
# RFC822 Email Address Regex
# --------------------------
# 
# Originally written by Cal Henderson
# c.f. http://iamcal.com/publish/articles/php/parsing_email/
#
# Translated to Ruby by Tim Fletcher, with changes suggested by Dan Kubb.
# http://tfletcher.com/lib/rfc822.rb
#
# Patched by Eric Lee, including:
# * domains containing invalid characters
# * domains starting or ending in a hyphen
# * atoms starting or ending in a hyphen
#
# Licensed under a Creative Commons Attribution-ShareAlike 2.5 License
# http://creativecommons.org/licenses/by-sa/2.5/
#
Something went wrong with that request. Please try again.