 <p>Try</p> <pre><code>$('.entry-content p').html(function (i, html) { //the regex is not complete return html.replace(/(£(\d{1,3},)*\d+\.\d{2})/, '&lt;span class="price"&gt;$1&lt;/span&gt;') }) </code></pre> <p>Demo: <a href="http://jsfiddle.net/arunpjohny/22Yv5/" rel="nofollow">Fiddle</a></p>