title: Finding a string between 2 other strings that has a minimum length of 5 a maximum of 7 and contains 2 dots
body: <p>Ok, this might sound a bit complicated, but trust me it shouldn't be.</p>
  
  <p>What I need to do is find a string that can be any value, and is placed between <code>"&gt;"</code> and <code>"&lt;/"</code> with a minimun length of 5 and a maximum length of 7 and contains exactly 2 dots.</p>
  
  <p>So if I have a text file like this:</p>
  
  <pre><code>&lt;a href="www.site.com"&gt;a site&lt;/a&gt;
  text&lt;br /&gt;
  More test&lt;br /&gt;
  &lt;img src="maybe an images"&gt;
  &lt;h2&gt;5.0.77&lt;/h2&gt;&lt;/br&gt;
  More text&lt;br /&gt;
  </code></pre>
  
  <p>I want it to find only the 5.0.77. And no, the number isn't always between <code>h2</code> tags, and the number isn't even always the same. The only thing that is static about it is that is is between <code>"&gt;"</code> and <code>"&lt;/"</code> and that it is between 5 and 7 characters and contains 2 dots.</p>
  
  <p>So if anyone could help, I'd be very grateful.</p>