Page 1 of 1

Extract two sets of html data

Posted: Mon Jun 12, 2006 12:36 pm
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

Posted: Tue Jun 13, 2006 2:53 pm
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;">