Forum Moderators: coopster

Message Too Old, No Replies

Generic Regex Table Extraction Problem

Extract all table values, grouped by td tags

         

cybersphere

10:33 am on Nov 30, 2006 (gmt 0)

10+ Year Member



I want to develop a regex which can extract all of the values between tags, i.e. >[^<]+<, grouped by each td tag within a table.

I can come up with an expression that selects each td pair, or an expression which extracts values, but not both.

Can a regex which does both be created, or should I break this down into 2 steps:

1) Extract td groups
2) Extract values from each group

A regex which does all would be best.

coopster

6:31 pm on Nov 30, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Can you offer a small example for clarification?