title: How do I replace a $ in a Lua string?
body: <p>How do you replace a dollar sign in Lua since it is a special character in pattern matching?</p>
  
  <p>I've tried this:</p>
  
  <pre><code>string.gsub("$44,000.00", "$", "")
  &gt; "$44,000.00"
  </code></pre>
  
  <p>But all it does is add a blank at the end of the string. For example</p>
  
  <pre><code>string.gsub("$44,000.00", "$", "what")
  &gt; "$44,000.00what"
  </code></pre>