title: Lua: Find hex-value in string
body: <p>I'm trying to find the hexadecimal non-printable character 00h within a string with Lua. I tried it with an escape character and as a result I get the same location I start in (that's a printable character). I fiddled around with the character classes, but that didn't amount to anything. My approach looks like this:</p>
  
  <pre><code>location = string.find(variable,"\00",startlocation)
  </code></pre>
  
  <p>I also tried it this way, but no luck:</p>
  
  <pre><code>location = string.find(variable, string.char(00),startlocation)
  </code></pre>
  
  <p>How can I find this non-printable pattern in Lua?</p>