Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Substring location won't tell you if your string is an email, for example.




From the page you linked:

> This regular expression will only validate addresses that have had any comments stripped and replaced with whitespace (this is done by the module).

There is filtering done before the regex is applied.


Yes, good point.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: