Free for PREMIUM members
[Webinar] Streamline your web hosting managementRegister Today
Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.
// A REGULAR EXPRESSION TO FIND THE FROM-EMAIL ADDRESS
= '#' // REGEX DELIMITER
. '.*?' // ANYTHING OR NOTHING
. '\<' // ESCAPED WICKET
. '(.*?)' // GROUP OF CHARACTERS WITH EMAIL ADDRESS
. '\>' // ESCAPED WICKET
. '#' // REGEX DELIMITER
// ISOLATE THE FROM EMAIL ADDRESS
preg_match($regex, $str, $matches);
Open in new window
...some examples where function emailregex($str) does not parse out...
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.
Premium members get this course for $62.50.
Premium members get this course for $159.20.
Premium members get this course for $31.25.
Premium members get this course for $37.50.
Premium members get this course for $79.20.