string.gsub 'Regex is too complex' on texture names
⭐ Starfall•Updated 2 days ago•0 views
Simplify the pattern or split it - e.g. string.gsub(name, "_[+-]?%d+", "", 3) with a count limit, or run multiple simpler gsubs instead of one big pattern.
Why does gsub with a complex pattern error 'Regex is too complex! 3 ext search length too long'
Simplify the pattern or split it - e.g. string.gsub(name, "_[+-]?%d+", "", 3) with a count limit, or run multiple simpler gsubs instead of one big pattern.