Mulit line grep

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

slouw
Posts: 4
Joined: Wed Dec 18, 2013 4:48 pm

Mulit line grep

Postby slouw » Wed Feb 03, 2016 1:25 pm

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

Image

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

Re: Mulit line grep

Postby DataMystic Support » Wed Feb 03, 2016 5:59 pm

Just use the search/replace filter with the Extract option checked, and with output to a new file.

Use this pattern:

Code: Select all

^[^\r\n]+cssipDisplayMsgL.*\d{7}


And replace with

Code: Select all

$0
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

tashazz11
Posts: 1
Joined: Thu Sep 08, 2016 2:32 am

Communal pictures

Postby tashazz11 » Thu Sep 08, 2016 2:35 am

Free porn galleries
http://brazil.porndairy.in/?pictures-susan
utube britans got talent/ 12 year old jpeg nude reese witherspoon amature sex mums svarogs porn movie


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest