x = [[a b c d e f g e b]]res, _ = string.gsub(x, "%a b", "z")print(res)
Standard input is empty
z c d e f g z
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!