Okay, I can do that. I'm writing a script that intercepts URLs in channel text, opens a socket to the URL, and adds the title of the page after the URL, so you'd end up with something like
<Tony311> go to
http://mirc.com [mIRC: Internet Relay Chat client] to get mirc
I already have all of the socket stuff done, I'm just working on intercepting URLs now. Each time someone says something, the script will use regex to find any URLs, then (this is what I need the matched text for) it will take the matched URL, return the title, and echo the timestamp, username, message, the url, and the title in place of the original message.
This is the regex i've been looking at (found it on some site):
https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?
The problem is, if I use $regml, it only returns the domain name, not the request string (/whatever/whatever.something.php) or the prefix (http://).