local v3 = "something in here {uid} {uid2}" res3, _ = v3:gsub("{.-}", ":id") print(res3)