On Wed, Feb 11, 2004 at 01:48:12PM -0000, David Carroll wrote: > Hi Guys, > When extracting data from many HTML pages, written by many developers, I > come across some pages that use upper case throughout <TABLE WIDTH ... and > some who use lower case <table width ... > > Now when extracting from these pages using Template::Extract, how can I > catch both eventualities, obviously in the most tidy way possible. > > [% FOREACH table_params %] > [% ... %] > <TABLE[% ... %]WIDTH="[% width %]" > [% END %]
Newer versions of Template::Extract supports [% /.../ %] fields, so
maybe you can try this:
[% FOREACH table_params %]
[% ... %]
<[% /table|TABLE/ %][% ... %][% /width|WIDTH/ %]="[% width %]"
[% END %]
Thanks,
/Autrijus/
pgp00000.pgp
Description: PGP signature
