public marks

PUBLIC MARKS from Spone with tags ressources & regexp

21 December 2009 17:30

Daring Fireball: A Liberal, Accurate Regex Pattern for Matching URLs

(via)
A common programming problem: identify the URLs in an arbitrary string of text, where by “arbitrary” let’s agree we mean something unstructured such as an email message or a tweet. I offer a solution, in the form of the following regex pattern...