Justin sent over a regex he wrote for catching the various bits of a url:
(http|ftp):\/\/((?:[^./]+\.){1,}(?:[^./]+))((?:/[^/]+)*/)([^/]+)\.([^./]+)
Name (required)
Mail (will not be published) (required)
Website
Notify me of follow-up comments by email.
Notify me of new posts by email.