Hi Monks
I have doubt in negative lookahead assertion.
<sec>here the text goes <pg> and text continuesI want to fetch the text from <sec> tag to <pg> tag, but the text fetched should not have <pg> tag. I used the following coding for the above text. is this correct? If not please clarify my doubts.
$str =~ /<sec>.*(?!<pg>)<pg>/si;Also i need to study the negative and positive look ahead and look behind assertions, where can i find the study material with good examples
Thanks in advance
In reply to negative look ahead by prasadbabu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |