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
Remove paragraph between 2 lines that start w/certain word
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
- 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
Search for EasyPattern:
Replace with:
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']
Code: Select all
WORD1 @a@
WORD2 @b@