But one regex could be this (i'm not sure which would be faster):if (m#<P>(.+)</P># && $1=~m/<b>/) {}
But as people noted above, html can be tricky since tags ba span multiple lines or be in same line. So be careful when doing pure regex handling on html.m#<P>(?!.+<b>)(.+)</P>#i
In reply to Re: Regular expression matching
by Hena
in thread Regular expression matching
by murugu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |