I am struggling with a regex.
I would like to match the height of the sl-block for a given image. In the example I have two images, image1.png and image2.png.
When I use a lookbehind it always match the very first height, but I would like to match the one corresponding to the sl-block where the image lays.
Using the code in the example, the regex should return 300.45678 if image1.png is chosen, and 300 for image2.png.
<div class="sl-block" data-block-type="img" style="width: 600px; height: 300.45678px; left: 0px; top: 0px;" data-name="img-b59ef5">
<div class="sl-block-content" style="z-index: 11;">
<img seamless="" scrolling="no" width="600" height="400" frameborder="0" src="/static/revealjs/img/test_size/image1.png" data-lazy-loaded="">
</div>
</div>
<div class="sl-block" data-block-type="img" style="width: 600px; height: 300px; left: 0px; top: 0px;" data-name="img-b59ef5">
<div class="sl-block-content" style="z-index: 11;">
<img seamless="" scrolling="no" width="600" height="400" frameborder="0" src="/static/revealjs/img/test_size/image2.png" data-lazy-loaded="">
</div>
</div>