[ create a new paste ] login | about

Link: http://codepad.org/oxQGXyZV    [ raw code | output | fork ]

nepta - Lua, pasted on Apr 8:
1
2
3
4
5
x = "hello world, hello moon"
y = "hello"
z = "adios"
x2 = x:gsub(y,z)
print(x2)


Output:
1
adios world, adios moon


Create a new paste based on this one


Comments: