Quote Originally Posted by Nitesh
this is getting hectic. Say I have these within a string:

Code:
this is a test
www.vbforums.com
http://www.vbforums.com
using my regexp function I extract www.vbforums.comand http://www.vbforums.com
I now add these two strings to an array seperated by commas.

Then I loop through the array and replace the first item with its array index so:

www.vbforums.com becomes <--0--> and
http://www.vbforums.com becomes <--1-->

Now how will I go about replacing that.

Please help
If you can Replace() A's with B's then you can Replace() B's with A's. Convert instances of domain to token:

strHTML = Replace(strHTML, strEmailIn(C), "<!--" & C & "-->")

Then as already explained convert tokens to links. Don't convert directly from domains into links.