say i have a string like "100 / 100" how would I remove everything after the "/"?
Hey Ho! It seems the easiest way is this one.
local variableName = ("some.string"):gsub("(.*)%..*$","%1") print(variableName)--[[just to check is it working]]
%. stands for the dot operator (...) according to https://www.lua.org/pil/20.2.html
Please accept an answer. Don't fear to ask me directly.