$regex prob - 19/06/07 08:43 AM
How come i cant get this to react on unreal:// ? I have added it as hotlink, how ever the script dosent underline it as it should, do i miss something here?
$theme_color(urls) returns the color of the text i want to echo, in my case 02..
Code:
alias urltheme { var %line = $1- if ($regex(%line,/(\b(www.?\.|https?:\/\/|ftp:\/\/|unreal://\/\/).)/i)) { var %x = 1 while (%x <= $numtok(%line,32)) { if ($regex($gettok(%line,%x,32),/(\b(www.?\.|https?:\/\/|ftp:\/\/|unreal://\/\/).)/i)) { var %l2 = $+($clr($theme_color(urls)),$chr(31),$gettok(%line,%x,32),$chr(31),$clr) %line = $puttok(%line,%l2,%x,32) } inc %x } } return %line }
$theme_color(urls) returns the color of the text i want to echo, in my case 02..