| mikezilla.com

Convert URLs to Hyperlinks using Regular Expressions

[ie, gecko]

This example shows how to parse a body of text extracting any URL starting with " http://" and ending with a space and replacing each URL with markup to make the URLs hyperlinks. This example also shows just the extracted links and then renders the resulting marked up HTML so the links can be seen.

More explanation of this technique can be found in my complete article Processing HTML using Regular Expressions on www.notestips.com


Results Links Only

Results Marked Up

Results as HTML