Extract two sets of html data

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

Extract two sets of html data

Post by cadalist » Mon Jun 12, 2006 12:36 pm

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>



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?


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

Post by DataMystic Support » Tue Jun 13, 2006 2:53 pm

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


Code: Select all

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

Simon Carter, https://www.DataMystic.com
https://www.JadeDiabetes.com - Insulin dose calculator for Type 1 diabetes
https://www.DownloadPipe.com - 250,000 free software downloads

Post Reply