Possible duplicate:
How to replace simple links to links?
I have some lines in which there are links. For instance:
var str = "I really love this site: http://www.stackoverflow.com"
and I need to add a link tag to it, so str will be:
I really love this site: <a href="http://www.stackoverflow.com">http:
I suppose some regular expression will be involved, but I cannot get it to work for me with match (). Any other ideas
source
share