I have a string which contains several different prices. This is the string:
<div class="price-box">
<p class="old-price">
<span class="price" id="old-price-145">
ab 64,00 € *
</span>
</p>
<p class="special-price">
<span class="price" id="product-price-145">
ab 27,00 € *
</span>
</p>
I want to replace only the 27,00 with something else, not the € an not the ab, just the price. I tried several regexes but failed so far. The prices differ, but the structure stays the same.
Thanks!
I agree with stema about HTML parser, but if you really want to use regex, how about: