Take a look at the Open source mail client Tunderbird... I bet theres some code in there that does a regex or something to find urls and you could probably steal the regex.

I could be wrong and Thunderbird doesn't use anything like a regex and it would be impossible to figure out how that mail client takes plain text emails and turns URLS it finds into links for someone not familiar with the code.

/John

[EMAIL PROTECTED] wrote:

Anyone else tried this?

Archives? Do you have a link?

Think this came up once before. Worth a look through the archives.

The challenge is to find the string that represents an URL, which begins
with http:// and ends with the first space after that.

Tricky.

On 2/15/05 9:04 AM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

 I got one that is bugging me to no end...

 WiTango 2000

 I have a forum I built. I have noticed on other forums that if you
 type in a URL like so...

 http://test.com

It automatically creates the link for you in the text that is returned.

 I was wondering if anyone has tried this in Witango. I have been
 fooling around with the <@replace> tag and cannot wrap my brain
 around it.

 In other words (within a block of text), if someone types...

 http://test.com

 Have it auto linked so the text is replaced with...

 <a href="test.com" target="_blank">http://test.com</a>

 Not sure if this will display properly or not, but will give it a try.

Thanks for any help or a point in the right direction.
________________________________________________________________________


 TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf



-----------------------------------------
Roland Dumas
Roberts Information Services
310 W. Bellevue Avenue
San Mateo CA 94402
650-347-1373
415-412-9300 (cell)
[EMAIL PROTECTED]
SMS: http://new.servqual.com/html/sms.tml


________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to