fork(22) download
  1. x = [[a b c d e f g e b]]
  2. res, _ = string.gsub(x, "%a b", "z")
  3. print(res)
Success #stdin #stdout 0s 15008KB
stdin
Standard input is empty
stdout
z c d e f g z