> Ok here is a sample of the data. Its very confidential so I am trying to > be selective on what I send. I am just including the header information > since its not going to be dangerous to send :) > > Basically a table exists on this page that has merchant transaction > info like this... > > The only lines on these pages that have dat that I need all have > class="statement" and align="center" in the td tag... > > Thanks for all your help. > Paul > > <tr> > <tr> > <td class="statement" valign="top" > align="center">Settlement<br>Date</td> > <td class="statement" valign="top" align="center">Terminal ID</td> > <td class="statement" valign="top" align="center">Batch > Control<br>Number</td> > <td class="statement" valign="top" align="right" >Net<br>Amount</td> > <td class="statement" valign="top" align="center">Items</td> > </tr> >
You seem to have found your solution, but this is a good example of why parsing HTML with simple regexes is probably not a good idea. A true HTML parser would have probably simplified matters had it been used from the start and will make future changes easier to manage, may I suggest: HTML::TokeParser::Simple I have found it very agreeable... http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]