title: Regex to match any character except a backslash
body: <p>How can i say "all symbols except backslash" in Ruby character class?</p>
  
  <pre><code>/'[^\]*'/.match("'some string \ hello'")  =&gt; should be nil
  </code></pre>
  
  <p>Variant with two backslashed doesn't work</p>
  
  <pre><code>/'[^\\]*'/.match("'some string \ hello'")  =&gt; 'some string \ hello' BUT should be nil
  </code></pre>