I have this line local pattern = string.format( "([^%s]+)", "." ); This pattern is then passed to string:gsub however I keep seeing errors saying that pa