This always used to work, but it doesn't appear to any more. Perhaps mIRC 7.x broke it.

The alias is:
Code:
alias urlencode return $regsubex($1,/([< >%{}|\^~[]`])/g,% $+ $base($asc(\t),10,16))


If you feed the alias "hello 123" it should return "hello%20123". It should also encode the other characters in the expression.

Can anybody see what's wrong?!

Thanks in advance.