Well regex was just to make the script shorter, regex was NOT needed. All that is needed is $left.
alias isurl {
if (($left($1-,7) == http:// || $left($1-,6) == ftp:// || $left($1-,9) == gopher:// || $left($1-,4) == www. || $left($1-,4) == ftp.) && $len($1-) < 257) return $true
return $false
}
I just used $regex to make it cleaner. Using $left is very basic and if you can't figure that out, imo you don't have a need for an isurl because you're not that good at scripting yet. Also I don't see what going to the forum has to do with it, I found out how mIRC defines a url by looking in the helpfile. It determines it by what the text begins with and how long the text is. To check what the text begins with, I want the left part of the text, therefore I use $left. To get the length I use $len. I don't see why you'd need to come to the forum to figure that out, /help should be enough.