Replace function with wildcard
Posted on 2005-03-20
1. I have a string. Example:
myString = "I found it at http://www.abc.com/ and www.xyz.com"
2. I need it to display as HTML with clickable hyperlink
3. I need a function that to smart enough to detect the above string contains a hyperlink, and replace it to become
myString = "I found it at <a href='http://www.abc.com/'>http://www.abc.com/</a> and <a href='http://www.xyz.com/'>www.xyz.com</a>"
How do I do that? the vbscript replace() doesn't seems to be able to do this. :(