I want to parse the cdata section and extract bits of information for display on google maps.
Below is an example of this cdata section contents.
I am able to extract "Projekt", "Længdegrad" and "Breddegrad" using a regular expression.Code:<div><b>Projekt:</b> Clausholmvej</div> <div><b>Længdegrad:</b> 55.642802</div> <div><b>Breddegrad:</b> 12.338333</div> <div><b>Indhold:</b> <div class=ExternalClass5039DAD80923490DBD90804763287407> <div>Kryds 1</div> <div> </div> <div><em>Mere kursiv tekst</em></div> <div> </div> <div><strong>Fed tekst</strong></div> <div> </div> <div><a href="http://code.google.com/support/bin/answer.py?answer=65622&topic=11364">Et link</a></div></div></div>
I am, however, not able to extract "Indhold" (marked in red). Indhold is a html snippet which is supposed to go into the Google Maps window, which pops up on clicking on a marker.
Could you help me and suggest a regexp that extracts Indhold for me? Please note the cdata example is copied verbatim as it arrives from the rss generator (Sharepoint...). I have no control of the generated rss. Also note that the ExternalClass... is expected to vary.
NB: I have tried putting the contents of cdata into a jQuery object for processing via jQuery. While this approach works in Google Chrome it fails in Internet Explorer, which is a mandatory supported browser for this application. I am forced to extracting these data bits by plain old regexp.
Thank you so much for your help.