A Liberal, Accurate Regex Pattern for Matching URLs

A must-bookmark for every developer ever doing anything with URLs.