find sequence of characters in paragraph with several spans

find sequence of characters in paragraph with several spans

Hi,

is there an easy jQuery way to get a sequence of characters like:

e.g.: 'wor' in

< p > < span > wo </ span > < span > rd </ span > </ p > ​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

and replace it with for example:

< p > < span > < span  style = backgroundcolor:yellow > wo </ span > </ span > < span > < span
  style = backgroundcolor:yellow > r </ span > d </ span > </ p >