OK< another question... I'm trying to write a script to intercept URLs in text and do some stuff with the URL, eventually adding some text after the URL. For example..
<Tony311> this is a url:
http://google.com Now go visit it
should end up being
<Tony311> this is a url:
http://google.com [text] Now go visit it
Is there any way to get the string that matched $regex? Like, "some stuff here", where the regex string is stuff.* would return "stuff here". But I can't find any way to get the matched string. Currently I'm trying to use $left and $right, but it's getting complicated.