I'm trying to use jquery to select the contents of a certain XML node:
var entry_text = $('entry_text').text();
and apply a regular expression to it, sort of like this one:
\<entry_text\>(?<url>.*?/>)(?<text>.*?)\</entry_text\>
So that if this is the XML node entry_text:
<entry_text><img src="http://site.com/image.jpg" width="431" height="480" />
Lorem Ipsum dolor sit amet</entry_text>
I'll get something like this:
<entry_text>Lorem Ipsum dolor sit amet</entry_text>
<entry_image><img src="http://site.com/image.jpg" width="431" height="480"/>
Only I'm not sure what the right regex is, or how to apply it to my string. Any ideas?