Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: Ketho
Forum: Lua/XML Help 11-22-10, 03:23 PM
Replies: 41
Views: 22,863
Posted By Ketho
Thanks Xub, for the clear explanation on the...

Thanks Xub, for the clear explanation on the pattern/regex! (n_n)
Still wondering though, why Phanx included the slash /, is it maybe also used for Out of Character messages?
Forum: Lua/XML Help 11-21-10, 11:47 PM
Replies: 41
Views: 22,863
Posted By Ketho
.. everytime I see one of those patterns, I get...

.. everytime I see one of those patterns, I get the feeling pattern matching is the craziest thing about Lua itself.
It looks like leetspeak to me but then for Lua gods ><
Forum: Lua/XML Help 11-16-10, 06:31 PM
Replies: 41
Views: 22,863
Posted By Ketho
Can't message = message:replace("r",...

Can't
message = message:replace("r", "rr"):replace("rrrr", "rr"):replace("R" "RR"):replace("RRRR", "RR")
be shortened to this for case-insensitive pattern matching?
message = message:replace("[Rr]",...
Showing results 1 to 3 of 3