String manipulation in Lua: Swap characters in a string
snippet in lua

String manipulation in Lua: Swap characters in a string

user9037

Result = Input:gsub("(.)(.)","%2%1")