ok, i'm getting closer to world domination, err I mean what I want out of this script, I can snatch out the individual full urls subdomains and domains, but the stuff that trails them that would be part of the url doesn't get added. how do I have it attach the rest of the url:

if a url is: http://www.blah.com/ieatworms.html

and it gives me http://www.blah.com
and doesn't add the /ieatworms.html

Then what regex pattern do i add after to get that?
Using this so far for fullurl matching:
Code:
 
$regex(fullurl,the text,/((?:http|https|ftp)://+(?:|\w+\.)\w+\.(?:com|net|org|ca|au|co.uk|name|us|biz|info))(?:\b|\/)/g)