Extract two sets of html data

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
cadalist
Posts: 1
Joined: Mon Jun 12, 2006 12:12 pm

Extract two sets of html data

Post by cadalist »

I can extract one set using pattern perl and extract lines matching, but how do i extract two different lines at the same time? The output comes out blank.

I have multiple html pages that I need to extract only lines with

<font class=description><b>Specification</b>

and

style="font-family:arial;font-size:14px;font-weight:bold;background-color:#cccccc;color:#FFFFFF;">

I only need the output just for these two lines.

I forgot one thing, I have a list of part numbers I need to search html files and after I find these part #s then I need to extract the html above.

How do i do this?

thanks
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by DataMystic Support »

Of course the output after the second 'Extract matches' is blank, because after the first 'Extract Matches', there won't be any other lines left in the data stream. Please read the tutorial to understand better how TextPipe works.

You need to 'OR' together your two patterns e.g.

Code: Select all

  A|B
ie

Code: Select all

<font class=description><b>Specification</b>|style="font-family:arial;font-size:14px;font-weight:bold;background-color:#cccccc;color:#FFFFFF;"> 
Post Reply