Mine
public text v1 · immutablefunction GameAmp.ConvertGlobalString(text)
text = string.gsub(text, "%(", "%%(");
text = string.gsub(text, "%)", "%%)");
text = string.gsub(text, "%%d", "(%%d+)");
text = string.gsub(text, "%%s", "([%%w %%d+-]+)");
return text.."$";
end