title: Matching between two sequences of characters
body: <p>I would like to match all lines under Targets: and up to Build Configurations. So in this situation I would like to match <code>OglGlm</code> and <code>OglGlmTest</code>, and any others that may appear under Targets:</p>
  
  <p>The following captures <code>OglGlm</code>: </p>
  
  <pre><code>Targets:\s([^=\t\n]*)
  </code></pre>
  
  <p>but I don't want to keep adding <code>\s([^=\t\n]*)</code>.</p>
  
  <p>Input data:</p>
  
  <pre><code>Information about project "OglGlm":
  
      Targets:
          OglGlm
          OglGlmTests
  
      Build Configurations:
          Debug
          Release
  
      If no build configuration is specified and -scheme is not passed then "Release" is used.
  
      Schemes:
          OglGlm
  </code></pre>