Lua String replace
Try: See also: http://lua-users.org/wiki/StringLibraryTutorial
Try: See also: http://lua-users.org/wiki/StringLibraryTutorial
By adding one extra ; at the end of the string, the string now becomes “one;two;;four;”, everything you want to capture can use the pattern “([^;]*);” to match: anything not ; followed by a ;(greedy). Test: Output: