Which special characters must be escaped when using Python regex module re?
<p>I'm using the Python module re to write regular expressions for lexical analysis.  I've been looking for a comprehensive list of which special characters must be escaped in order to be recognized by the regex to no avail.  Can someone please point me to an exhaustive list?</p>

<p>The line in the current regex I'm writing that's giving me trouble is:</p>

<pre><code>[\|\^&amp;\+-%\*\/=!&gt;]
</code></pre>

<p>I'd like it to recognize the characters: <code>|^&amp;+-%*/=!&gt;</code></p>

<p>Have I not escaped something I should have?</p>