You can try out this:
if ($file=~m#(<first>(?:[^<]+|<(?!/?first>))+</first>)(?:[^<]+|<(?!/?f +irst>))+(<content>maps</content>)#i) { print "\n$1 == $2"; }
Gopal.R
In reply to Re: Clarification on greediness
by gopalr
in thread Clarification on greediness
by prasadbabu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |