News for hackers. Stuff that matters.
Re:In search of the perfect URL validation regex by kemayo on Sunday June 22, 2014 @09:34PM (#7929784)
It's why you should always write regex (at least, anything beyond a couple of characters) using the `x / PCRE_EXTENDED` flag. It makes them ignore whitespace and anything following a #, so you can split your regex up onto multiple lines and comment it to explain what it's doing.
Re:In search of the perfect URL validation regex by CMCDragonkai on Monday June 23, 2014 @12:10AM (#7930187)
Here's the documented version: https://gist.github.com/dperini/729294

We should get a port to every language.