• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Search results

  1. DarkHack

    String replace '[' or ']' how?

    Yes, found, sorry, juste I learn basics. path=path:gsub('%[','\\['):gsub('%]','\\]')
  2. DarkHack

    String replace '[' or ']' how?

    I had tried : path:gsub("\[","\\\[") invalid escape sequence near '"\['
  3. DarkHack

    String replace '[' or ']' how?

    Hi, I search to use some path with '[' and ']', but in unix maybe windows too, for mkdir path, like #find \[dw\]/\[core\]/ [dw]/[core]/ [dw]/[core]/dwInit [dw]/[core]/dwInit/client I have to escape the '[' by '\', so with gsub, I had tried : path:gsub(string.format("%c"...
Top