How can I capture a multi line grep from a text file.
There are paragraphs in the file with paragraph start and end signatures which I can identify with Perl regex (my preferred pattern type) as shown in the screenshot.
The existing grep filters had an option for .* to match carriage returns then I think I could do it.
This option I see for find/replace filters not grep.
Many thanks for any reply
Mulit line grep
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: Mulit line grep
Just use the search/replace filter with the Extract option checked, and with output to a new file.
Use this pattern:
And replace with
Use this pattern:
Code: Select all
^[^\r\n]+cssipDisplayMsgL.*\d{7}
Code: Select all
$0