Hi, I want to do the following:
I have a string (from another html-page) from which I want to extract the news. the news are marked with html-comments like this:
..blah blah blah <!-- headline -->headline 1<!-- /headline> blah blah blah ..some other html <!-- news -->news text1<!-- /news --> ...<!-- headline -->headline 21<!-- /headline> blah blah blah ..some other html <!-- news -->news text2<!-- /news --> ...
I want to stripp anything which is outside of <!-- headline -->..<!-- /headline --> and <!-- news -->..<!-- /news -->
does anyone know how to write this regex???