title: Why does ruby's JSON parser eat my backslash?
body: <p>The following example in JSON format contains one backslash, and if I run <code>JSON.load</code>, the backslash disappears:</p>
  
  <pre><code>JSON.load('{ "88694": { "regex": ".*?\. (CVE-2015-46055)" } }')
  # =&gt; {"88694"=&gt;{ "regex"=&gt;".*?. (CVE-2015-46055)"}}
  </code></pre>
  
  <p>How can I keep the backslash?</p>
  
  <p>My goal is to have this structure, and whenever I need, read the file, load the JSON into Hash, and search for those regular expressions.</p>
  
  <p>UPDATE 1</p>
  
  <p>here is an example what I want.</p>
  
  <pre><code>irb&gt; "stack.overflow"[/.*?\./]
  =&gt; "stack."
  </code></pre>
  
  <p>I <strong>can't</strong> pass the regex from JSON to my string in order to catch that "<strong>.</strong>", because the "\." disappears.</p>