News for hackers. Stuff that matters.
Re:In search of the perfect URL validation regex by dep_b on Sunday June 22, 2014 @07:50PM (#7929601)
I agree, the correct one (+500 chars) looks like a maintenance nightmare to me. I tried to build a real e-mail address validator that would accept also the more exotic forms and there was no way in hell I would have done that in regex.

I also met very few people that actually understood regex. It's a whole new skill and if I use it in my application I don't know if the next guy can pick it up.

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.