title: Using regex in Notepad++, how to capture previous line after matching an expression
body: <p>I have a file with thousands of entries like:  </p>
  
  <pre><code>&lt;Source foo="goo"&gt;
      &lt;Name label="SomeLabel"/&gt;
  &lt;/Source&gt;
  &lt;Target foo="bar"&gt;
      &lt;Name label="SomeLabel"/&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>The only thing that changes is the "SomeLabel" string.  I'm trying to write a search expression in Notepad++ that will return either just the 'SomeLabel' strings, or at least the entire  line.  However, I <em>only</em> want that line if it is between the &lt;Target&gt; tags; I don't want the &lt;Source&gt; nodes.  I know I need to use a lookbehind (or lookahead), but I just can't figure it out, especially with the &lt;&gt; characters in the string to match.</p>
  
  <p>Thanks!</p>