Lua Script 문자열 Replace 하기!
개발
2017. 10. 22. 18:29
Lua Script 에서 replace를 하려면 string.Replace 를 사용하면 됩니다. 1string.Replace( String text, String to_be_replaced, String replace_with )cs 그러나 Lua 버전이 낮아서 Replace가 없다고 나오네요. 그래서 한번 만들어 봤습니다. 123456function replace(text, to_be_replaced, replace_with) local strFindStart, strFindEnd = string.find(text, to_be_replaced) if strFindStart ~= nil then local nStringCnt = string.len(text) local retText = string.su..