Posted 19 April 2012 - 03:52 PM
The Wiki page for the String API lists string.gmatch as not working and yet I can find no problem with it. Does anyone know of a problem with it?
"abcdef":gmatch("%a*") -- Works
"abc=def":gmatch("%a*") -- Hang
"abc=def":gmatch("%a.*") -- Works
"abc=def":gmatch("[%a.]*") -- Hang
"abc=def":gmatch("[^=]*") -- Hang
"abc=def":gmatch("([^=]*)=?") -- Works (Note: This produces the same result as the above pattern should)
"abcdef":gmatch("[^=]*") -- Works
"abc=def":gmatch("[^=]*=") -- Works