Lua gsub second instance
snippet in lua

Lua gsub second instance

user4035

local mystring = "Thats a really nice house."
local cnt = 0
print( string.gsub( mystring, " ", function( m )
  cnt = cnt + 1
  if cnt == 2 then
    return "/"
  end
end ) )