Extract two sets of html data

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

Extract two sets of html data

Postby 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: 2140
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia

Postby 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, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 3 guests