Hey all,
I actually wonder how to remove a piece of text, I'm gonna give you examples:
For example I want to show a list of maps, those maps contain tags and i want to remove those tags only from the whole name.
I know it's a string.gsub or something, another string maybe, I don't remember and that's why I'm asking you.
Well, for exemple those mapnames:
"/ABC/ Mapname1"
"/DEF/ Mapname2"
"/OEHSHE/ Mapname3"
"/HSIUXOP/ Mapname4"
So here is my question, how to remove those tags between / /, should I create a table with all the tags and then do something like
tableName = {"/ABC/", "/DEF/", "/OEHSHE/", "/HSIUXOP/"}
for i, v in pairs(tableName) do
if string.find(mapname, "v") then
mapname = mapname:string.gsub(v, "")
end
end
That's all I wanted to know, thanks in advance!