title: regular expression no hits in python
body: <p>I have the following regular expression</p>
  
  <pre><code>(?&lt;=&lt;TEXT&gt;).*?(?=&lt;/TEXT&gt;)
  </code></pre>
  
  <p>which is supposed to find anything between <code>&lt;TEXT&gt;</code> and <code>&lt;/TEXT&gt;</code>.</p>
  
  <p>I paste my string on <a href="http://pythex.org/" rel="nofollow">http://pythex.org/</a> and it does work, but the following implementation in python does not find anything</p>
  
  <pre><code>import re
  re.findall(r'(?&lt;=&lt;TEXT&gt;).*?(?=&lt;/TEXT&gt;)', text)
  </code></pre>
  
  <p>where <code>text</code> contains what I pasted into the window there (used the debugger, pasted output of variable). Do I need to pay attention to something special? </p>
  
  <p><em>Some additional output</em></p>
  
  <pre><code>&gt;&gt;&gt; pattern = re.compile(r"(?&lt;=&lt;TEXT&gt;).*?(?=&lt;/TEXT&gt;)")
  &gt;&gt;&gt; print(pattern)
  re.compile('(?&lt;=&lt;TEXT&gt;).*?(?=&lt;/TEXT&gt;)')
  &gt;&gt;&gt; re.DOTALL
  16
  &gt;&gt;&gt; pattern.findall(text)
  []
  </code></pre>