News for hackers. Stuff that matters.
Re:You Should Learn Regex by kuschku on Wednesday October 11, 2017 @08:30AM (#15449178)
That works if you have content that you know is an email address.

If you have free-form content, and need to identify email addresses in it, then you can’t just email every subset of that text.

Re:You Should Learn Regex by lowmagnet on Wednesday October 11, 2017 @08:42AM (#15449248)
> That works if you have content that you know is an email address.

That's what validation is. You're talking about finding email addresses, which I agree that regex is relatively OK at doing, but there are still lots of edge cases in the spec that are irregular.