BBCode::IsValidEmail( $string )
Description
Source
File: bp-forums/admin/parser.php
function IsValidEmail($string) { $validator = new BBCodeEmailAddressValidator; return $validator->check_email_address($string); /* return preg_match("/^ (?: [a-z0-9\\!\\#\\\$\\%\\&\\'\\*\\+\\/=\\?\\^_`\\{\\|\\}~-]+ (?:\.[a-z0-9\\!\\#\\\$\\%\\&\\'\\*\\+\\/=\\?\\^_`\\{\\|\\}~-]+)* | \"(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F] |\\\\[\\x01-\\x09\\x0B\\x0C\\x0E-\\x7F])*\" ) @ (?: (?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+ [a-z0-9] (?:[a-z0-9-]*[a-z0-9])? | \\[ (?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3} (?: 25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]: (?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21-\\x5A\\x53-\\x7F] |\\\\[\\x01-\\x09\\x0B\\x0C\\x0E-\\x7F])+ ) \\] ) $/Dx", $string); */ }
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.