Text matching - Removing lines above and below

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

Text matching - Removing lines above and below

Post by 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


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?


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

Post by 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'.

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