|
Posted by Rik on 07/20/07 03:29
On Fri, 20 Jul 2007 04:01:07 +0200, axlq <axlq@spamcop.net> wrote:
> Before I try to do this myself (I remember doing it in Java years ago
> and it was a pain)....
>
> Has anyone run across a function that will take a string parameter
> containing an HTML table, and return a 2-dimensional array with each
> element corresponding to the contents of a table cell?
>
> I see plenty of examples of doing the opposite: convert an array to
> an HTML table. I want to go the other way, from an HTML table to an
> array.
Regex could be the way to go. Before I start an elborate pattern: any
ideas how you'd like to treat col-/rowspans?
--
Rik Wasmus
Navigation:
[Reply to this message]
|