($match) = $str =~ /<sec>(.*?)<pg>/;
Try perldoc.com and look at the POD "perlre" for some information about lookaheads and behinds. They're neat, but a lot of times they can be avoided by rethinking what you're searching for.
In reply to Re: negative look ahead
by delirium
in thread negative look ahead
by prasadbabu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |