Regex Notes

Link to PHP Regex Classes
PHP Regex Pattern Modifiers
PHP escape sequences

REGEX Description
/^[0-9]{5}(?:-[0-9]{4})?$/ zip code
/^[\w\.%-]+@(?:[\w-]+\.)+[a-zA-Z]{2,4}$/ email