murugu has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks
while doing text processing i want to match the content inside the <P> tag, but i dont want match <P> tags inside which <b> tag is present.
<P>Just another perl hacker</P> <P>Just <b>another</b> perl hacker</P>
For the above code I want an regular expression which matches the first line and not the second.
Many thanks in advance
--Murugesan--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular expression matching
by matija (Priest) on Mar 17, 2004 at 10:03 UTC | |
|
Re: Regular expression matching
by Corion (Patriarch) on Mar 17, 2004 at 10:15 UTC | |
|
Re: Regular expression matching
by Hena (Friar) on Mar 17, 2004 at 10:23 UTC | |
by bart (Canon) on Mar 17, 2004 at 10:42 UTC | |
by Hena (Friar) on Mar 17, 2004 at 10:57 UTC | |
by Abigail-II (Bishop) on Mar 17, 2004 at 13:35 UTC |