Assume a web pages contains a lot of stuff (mosty text).
In between the text occasionally something like
foobar text [caption ...]......[/caption] sample text behind
appears.
How can I delete with jquery all occurrencies of [caption ...].....[/caption] including the [caption] and [/caption]
patterns?
"Foobar text" and "sample text behind" (in the sample above) should NOT be deleted
Between [caption ...] and [/caption] other elements could appears which should be deleted as well.