News for hackers. Stuff that matters.
Re:The “Chad” bug by Dylan16807 on Thursday December 31, 2015 @05:33PM (#10820089)
Allow all the characters that are supposed to be valid outside of quotation marks. Letters, numbers, .!#$%&'*+-/=?^_`{|}~

That way if you don't mind letting through double periods or domain segments having more than 63 characters, you can validate an email with two character classes separated by an @. The basic regex looks like [xx]+@[yy]+

There are no comments on this comment yet.