Text matching - Removing lines above and below

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

depesh
Posts: 1
Joined: Sat Feb 18, 2006 5:42 am

Text matching - Removing lines above and below

Postby depesh » Mon Feb 20, 2006 12:52 am

I have text pipe version 6.2.9 and have been using it for years. My question is regarding text on multiple lines. I need the filter to match a line and then remove that line and the line above and below it. For example

Matched line:

The cat is on the mat

Text:

The dog is in the house
The cat is on the mat
The broom is in the closet

I need it to match "The cat is on the mat" remove that line and remove the one above and below it.

Is this possible with this version? Is this possible in ANY version?

Thanks,
Stephanie

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

Postby DataMystic Support » Wed Apr 19, 2006 8:38 am

Hi Stephanie,

Use the Remove\Remove Lines Matching filter, and set the Context Lines above and below to '1'.
Regards,

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 2 guests