title: How to set maximum number of wildcard characters in a regex?
body: <p>I have a directory with a bunch of XMLs, some of which contain two lines like this:</p>
  
  <pre><code>31/02/2014 11:15 | Bla Bla Bla Target1 Bla Bla Bla
  31/02/2014 11:15 | Bla Bla Target 2 Bla Bla Bla Bla
  </code></pre>
  
  <p>The important thing is I find the lines that contain Target1 and Target2. These two lines will always be next to each other but the Bla's can be different each time, but probably never any more than 100 characters.</p>
  
  <p><em><strong>So what I'm looking for is something like:</em></strong></p>
  
  <pre><code>Target1[Greedy match (Maximum 100)]Target2
  </code></pre>