Probably the only thing I like about Lua's regular expressions is that they traded power for simplicity, so they're easy to learn. And the added benefit of learning things like this is you get better understanding of other people's code. I've had to learn myself, never used Lua and still don't like it as a language
Another shortcut:
Originally Posted by Xrystal
Lua Code:
for i = 3, 23 do newLink = newLink..":"..linkData[i] end
|
Lua Code:
newLink = newLink .. table.concat(linkData, ":", 3, 23)