tesla1889, on 25 February 2013 - 07:00 AM, said:
instead of string.match(s,"%p") it would be s:match("%p")
Idk what you're doing wrong somewhere, but I have not come across a Lua string function that you cannot use colon notation instead of dot notation; except for functions that are not modifying or accessing a string; obviously there is no point to having string.char, which expects a number, and string.dump, which expects a function, being able to use the colon notation; I should point out that you can still use colon notation on it, it just errors those functions because you are passing the functions a string when they want a number or function.
all these work
if its string.<func>(<the string>, <other-params>) then you can do it with : because of the first 'self' parameter.