Created
March 17, 2020 01:12
-
-
Save Padilo300/b21b6af60cc804c902898b956be2fb2e to your computer and use it in GitHub Desktop.
php регулярное выражение достать email
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
preg_match_all('/([a-z0-9_\.\-])+\@(([a-z0-9\-])+\.)+([a-zа-я0-9]{2,4})+/i', $string, $matches); | |
$result=implode(", ", $matches[0]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment