SO - 24303463
by Arun P Johny
HTML
<div class="entry-content">
<p>Jhony bought a laptop for £1,500.00</p>
<p>Alex bought a desk for £500.00</p>
</div>
CSS
.price {
color:green;
}
JavaScript
$('.entry-content p').html(function (i, html) {
//the regex is not complete
return html.replace(/(£(\d{1,3},)*\d+\.\d{2})/, '<span class="price">$1</span>')
})