What's wrong with this regular expression? - 30/05/11 01:13 PM
This always used to work, but it doesn't appear to any more. Perhaps mIRC 7.x broke it.
The alias is:
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.
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.