Skip to content

Instantly share code, notes, and snippets.

@kathgironpe
Created February 10, 2012 14:23
Show Gist options
  • Save kathgironpe/1789890 to your computer and use it in GitHub Desktop.
Save kathgironpe/1789890 to your computer and use it in GitHub Desktop.
From Ruby to Lua

I want peace

local something = "/I/want/peace"

print(string.sub(something, string.find(something, "[^/\]*$")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment