title: Regex, select closest match
body: <p>Assume the following word sequence</p>
  
  <pre><code>BLA text text text  text text text BLA text text text text LOOK text text text BLA text text BLA
  </code></pre>
  
  <p>What I would like to do is to extract the text from BLA to LOOK, but the BLA which is the closest to look. I.e. I would like to get</p>
  
  <pre><code>BLA text text text text LOOK 
  </code></pre>
  
  <p>How should I do that using regular expressions? I got one solution which works, but which is exteremely inefficient.</p>
  
  <pre><code>BLA(?!.*?BLA.*?LOOK).*?LOOK
  </code></pre>
  
  <p>Is there a better and more performant way to achieve matching this pattern?</p>
  
  <p>What I would like to do is: I would like to match BLA, then forward lookahead until either positive fordward lookahead with LOOK or negative lookahead with BLA. But I don't know a way to put this into a regular expression.</p>
  
  <p>As a engine I use re in python.</p>