On Wed, 10 Jul 2002 09:28:28 -0700 (PDT), Marvin Crippen wrote: >I think it should also be m// rather than s// (or even s///).
Of course. Sorry that I missed that. >This also only works if the table tags are NOT nested ... presumable the >"Can I use Perl regular expressions to match balanced text?" question in >perlfaq6 would apply in the case you expect nested tables. It may well work, provided you've got any other quirks handled properly, even with nested tables, because the regex will eat everything from the very first opening tag, to the very last closing tag. One of those quirks, include attributes for the opening tag, like <table border=0> So this might work: m[<table\b.*?>(.*)</table>]si; provided your attributes don't contain any gt signs... they rarely do, especially with the attributes for tables. -- Bart.