Shoutbox

url checks? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: url checks? (/showthread.php?tid=89170)

url checks? by zogo on 02-14-2009 at 02:36 PM

hey im wondering if there is a way of checking a message for a url and then checking if its on a list...

this will be very usefull to a few scripts i have been wanting to make for some time and i cant seem to find any on the online docs...

cheers (Y)


RE: url checks? by matty on 02-14-2009 at 04:41 PM

This regexp should get you started.

/(ftp|http|https):\/\/([_a-z\d\-]+(\.[_a-z\d\-]+)+)(([_a-z\d\-\\\.\/]+[_a-z\d\-\\\/])+)*/