title: Reverse String in Lua?
body: <p>I am trying to reverse a string in Lua without using the string.reverse() function. Here is my code - </p>
  
  <pre><code> function reverseStr(s)
     return string.gsub(s, "(.)(.)", "%2%1")
   end
  </code></pre>
  
  <p>The code is currently only reversing the first two characters in the string, and I am wondering what I can do to make the function reverse <em>every</em> character in the string.</p>
  
  <p>abc -- cba
  bbc -- cbb
  dka -- akd</p>
  
  <p>Thank you!</p>