Introduction
Aim: to match version (2.4.0) located in sample using ketarin
Regular expression:
(?=.*Release.*)[\d\.]+(?=.*available)
Other digits are matcht as well according Rubular.
<a href="#News">News</a>
<ul class="minitoc">
<li>
<a href="#07+April%2C+2014%3A+Release+2.4.0+available">07 April, 2014: Release 2.4.0 available </a>
</li>
<li>
<a href="#20+February%2C+2014%3A+Release+2.3.0+available">20 February, 2014: Release 2.3.0 available </a>
</li>
Question
How to match the version (2.4.0) from this text using regex?