Lua String replace
Try: name = “^aH^ai” name = name:gsub(“%^a”, “”) See also: http://lua-users.org/wiki/StringLibraryTutorial
Try: name = “^aH^ai” name = name:gsub(“%^a”, “”) See also: http://lua-users.org/wiki/StringLibraryTutorial
Are any common samples where lua pattern matching is “better” compared to regular expression? It is not so much particular examples as that Lua patterns have a higher signal-to-noise ratio than POSIX regular expressions. It is the overall design that is often preferable, not particular examples. Here are some factors that contribute to the good … Read more