title: Case insensitive regular expression without re.compile?
body: <p>In Python, I can compile a regular expression to be case-insensitive using <code>re.compile</code>:</p>
  
  <pre><code>&gt;&gt;&gt; s = 'TeSt'
  &gt;&gt;&gt; casesensitive = re.compile('test')
  &gt;&gt;&gt; ignorecase = re.compile('test', re.IGNORECASE)
  &gt;&gt;&gt; 
  &gt;&gt;&gt; print casesensitive.match(s)
  None
  &gt;&gt;&gt; print ignorecase.match(s)
  &lt;_sre.SRE_Match object at 0x02F0B608&gt;
  </code></pre>
  
  <p>Is there a way to do the same, but without using <code>re.compile</code>. I can't find anything like Perl's <code>i</code> suffix (e.g. <code>m/test/i</code>) in the documentation.</p>