local v = "something in here {uid} {uid2}"res, _ = v:gsub("{([^{}]*)}", ":id")print(res)
Standard input is empty
something in here :id :id
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!