detect url in TMemo or TRichEdit

How does one detect and retrieve a url in a memo or richedit??

Any help most appreciated.
Thanks, Gurpal

--
Gurpal Singh Bhachu
Info. Sys. Eng. UG 2
Dept. of Computing,
Imperial College,
180 Queen's Gate
London SW7

Mob: 0956 266619
ICQ: 33484884