which will match from the <sec> up to the <pg>my $string = qq*<sec>here the text goes <pg> and text continues*; my ($match) = $string =~ /(<sec>.*)(?=<pg>)/;
In reply to Re: negative look ahead
by ercparker
in thread negative look ahead
by prasadbabu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |