Is it possible to select only part of a string using jquery? For example I have a text
Metuentes igitur idem latrones Lycaoniam magna parte campestrem&l
Based on the answer from here: Wrap around part of text inside an element
you could do the following:
$('p').html(function(index, oldHtml){ return oldHtml.replace(/(amet)/g, '$1'); });
http://jsfiddle.net/YxMvq/