News for hackers. Stuff that matters.
Re:A Liberal, Accurate Regex Pattern for Matching URLs by blasdel on Friday November 27, 2009 @05:11PM (#964439)
Indent your lines with two spaces and they'll end up in a <pre> with your asterisks intact.

Why bother trying to validate the domain lexically, when you can just try resolving it?

Re:A Liberal, Accurate Regex Pattern for Matching URLs by notauser on Friday November 27, 2009 @05:32PM (#964461)
Thanks, fixed the formatting.

(It's not my regex - I lifted it from someone who had the time to write a comprehensive test suite.)