title: Regex Apostrophe how to match?
body: <p>I want to add to this rule match on <strong>Apostrophe</strong> <code>'</code></p>
  
  <pre><code>rule = re.compile(r'^[^*$&lt;,&gt;?!]*$')
  </code></pre>
  
  <p>I have tried:</p>
  
  <pre><code>rule = re.compile(r'^[^*$&lt;,&gt;?!']*$')
  </code></pre>
  
  <p>but it sees the apostrophe as a line error, why?</p>