in reply to Pattern Matching

s#<index-entry id="[^"]*"><index-heading>\s*</index-heading>\s*</index +-entry>##gsi;
Boris