Remove paragraph between 2 lines that start w/certain word

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
Aircut
Posts: 12
Joined: Sun Oct 28, 2012 2:09 pm

Remove paragraph between 2 lines that start w/certain word

Post by Aircut »

advise would be greatly appreciated

i need to remove a paragraph between lines which starts with a certain words

WORD1 [variable string1]
paragraph to be removed
WORD2 [variable string2]

output wanted:

WORD1 variable string1
WORD2 variable string2
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Remove paragraph between 2 lines that start w/certain wo

Post by DataMystic Support »

Search for EasyPattern:

Code: Select all

WORD1 [capture(1+ not cr or lf) as 'a']
paragraph to be removed
WORD2 [capture(longest 1+ not cr or lf) as 'b']
Replace with:

Code: Select all

WORD1 @a@
WORD2 @b@
Post Reply