Regular expression for parsing links from a webpage?

((mailto\:|(news|(ht|f)tp(s?))\://){1}\S+)

I took this from regexlib.com

[editor’s note: the {1} has no real function in this regex; see this post]

Leave a Comment