A: Lua has special characters, and a few they label as magic. It makes regex-ing out normal ASCII characters just a little more complicated. The first one I ran into is the [It’s used in a few special ways in Lua so to regex it out you have to use a delimiter.
output_string = string.gsub(input_string, "%[", "") -- [ \091
output_string = string.gsub(input_string, "%]", "") -- ] \093
output_string = string.gsub(input_string, "{", "")
output_string = string.gsub(input_string, "}", "")
output_string = string.gsub(input_string, "\"", "")
So the above shows examples of some weird ones to regex out.
Hits: 0