Posted 09 October 2012 - 10:34 PM
when I attempt to call string.gsub like so:
It causes the error: vm error: java.lang.ArrayIndexOutOfBoundsException: N, on the line number of the string.gsub call (N is the number of characters in a_string), when a_string both starts and ends with a letter.
This happens whether the '(' and ')' in %b() are escaped or not.
I think it might be a bug, but I'm posting it here in case I'm just doing something wrong.
string.gsub(a_string, "(%a+)%s*(%b())", "any string, table, or function")
It causes the error: vm error: java.lang.ArrayIndexOutOfBoundsException: N, on the line number of the string.gsub call (N is the number of characters in a_string), when a_string both starts and ends with a letter.
This happens whether the '(' and ')' in %b() are escaped or not.
I think it might be a bug, but I'm posting it here in case I'm just doing something wrong.