in reply to Regular expression matching
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regular expression matching
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 |