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