title: Using more than one flag in python re.findall
body: <p>I would like to use more than one flag with the <code>re.findall</code> function. More specifically, I would like to use the <code>IGNORECASE</code> and <code>DOTALL</code> flags at the same time.</p>
  
  <pre><code>x = re.findall(r'CAT.+?END', 'Cat \n eND', (re.I, re.DOTALL))
  </code></pre>
  
  <p>Error :</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;pyshell#78&gt;", line 1, in &lt;module&gt;
      x = re.findall(r'CAT.+?END','Cat \n eND',(re.I,re.DOTALL))
    File "C:\Python27\lib\re.py", line 177, in findall
      return _compile(pattern, flags).findall(string)
    File "C:\Python27\lib\re.py", line 243, in _compile
      p = sre_compile.compile(pattern, flags)
    File "C:\Python27\lib\sre_compile.py", line 500, in compile
      p = sre_parse.parse(p, flags)
    File "C:\Python27\lib\sre_parse.py", line 673, in parse
      p = _parse_sub(source, pattern, 0)
    File "C:\Python27\lib\sre_parse.py", line 308, in _parse_sub
      itemsappend(_parse(source, state))
    File "C:\Python27\lib\sre_parse.py", line 401, in _parse
      if state.flags &amp; SRE_FLAG_VERBOSE:
  TypeError: unsupported operand type(s) for &amp;: 'tuple' and 'int'
  </code></pre>
  
  <p>Is there a way to use more than one flag ?</p>