Just out of curiosity, does anyone know how the FILTER_VALIDATE_EMAIL
flag works in filter_var
? I assume it uses a regexp but mankind has long sought a perfect regexp for this task, I'd like to know what PHP is using.
Asked
Active
Viewed 28 times
0

Okonomiyaki3000
- 3,628
- 23
- 23
-
1See https://github.com/php/php-src/blob/master/ext/filter/logical_filters.c#L499 – mario Jul 11 '14 at 08:09
-
1http://stackoverflow.com/a/3613613/3574819 – FuzzyTree Jul 11 '14 at 08:11