SPUG: Text::Balanced broken!
Tim Maher/CONSULTIX
tim at consultix-inc.com
Sat Dec 25 18:57:58 CST 1999
SPUGsters,
In other Christmas news, I've found what seems to be a bug in Damian
Conway's Text::Balanced::extract_tagged() function. Although it's
supposed to handle all HTML/XML tags, the internal RE it uses to construct
the closing tag for the given opening tag doesn't allow digits, so if
you tell it to match <H1> text, it looks for a closing tag of </H>,
which it obviously won't find.
Also, I sure wish he'd show some realistic examples of the $prefix
argument in his documentation; it took me quite a while to figure out
the
that I needed '(?s).*?(?=<H2>)' to skip any characters leading up to
the next tag!
Apparently Damian has a peculiar was of spending Christmas, because I
haven't been able to get a reply from him via Email today. 8-}
*==================================================================*
| Tim Maher, PhD Consultix & (206) 781-UNIX/8649 |
| Pacific Software Gurus, Inc Email: tim at consultix-inc.com |
| UNIX/Linux & Perl Training http://www.consultix-inc.com |
| Classes: 12/13 Perl; 12/17 Adv. Pattern Matching; 1/18 Int. Perl |
*==================================================================*
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
SUBSCRIBE/UNSUBSCRIBE: Replace ACTION below by subscribe or unsubscribe
Email to majordomo at pm.org: ACTION spug-list your_address
More information about the spug-list
mailing list