John Gruber a publié sur son fameux blog, Daring Fireball, un post contenant une expression régulière devant matcher toute URL.

Ça peut s’avérer assez pratique.

An Improved Liberal, Accurate Regex Pattern for Matching URLs