Hi Gubendran,
$str=~s#(.+)<index-entry id[^>]+>\s*<index-heading></index-heading>\s* +</index-entry>#$1#gs;
use .+ for getting last <index-heading>
Thanx
Gopal.R
In reply to Re: Pattern Matching
by gopalr
in thread Pattern Matching
by gube
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |