From: jmichel <jmi.mig...@gmail.com>
Date: Mon, 8 Oct 2012 02:19:38 -0700 (PDT)
Local: Mon, Oct 8 2012 5:19 am
Subject: Re: Subpatterns in Grep?
This sounds fine for my type of use. Le samedi 6 octobre 2012 17:04:43 UTC+2, Patrick Woolsey a écrit :
> To do this, just modify your existing pattern to find successive pairs of > Find: (\d{6})(.+)(?:\r\1(.+)) > Replace: \1\2\3 > and then repeatedly apply Replace All until all line pairs which start > (E.g. for groups of 16 lines or fewer, this will take at most 4 passes of > PS: John Delacour's text filter is a much nicer general solution; the only > Regards, > Patrick Woolsey > At 23:50 -0700 10/05/2012, jmichel wrote: > Yes, and please see below. > >Then the problem would be to ensure a match also in the case when the > To do this, just modify your existing pattern to find successive pairs of > Find: (\d{6})(.+)(?:\r\1(.+)) > Replace: \1\2\3 > and then repeatedly apply Replace All until all line pairs which start > (E.g. for groups of 16 lines or fewer, this will take at most 4 passes of > PS: John Delacour's text filter is a much nicer general solution; the only > Regards, > Patrick Woolsey > At 23:50 -0700 10/05/2012, jmichel wrote: > Yes, and please see below. > >Then the problem would be to ensure a match also in the case when the > To do this, just modify your existing pattern to find successive pairs of > Find: (\d{6})(.+)(?:\r\1(.+)) > Replace: \1\2\3 > and then repeatedly apply Replace All until all line pairs which start > (E.g. for groups of 16 lines or fewer, this will take at most 4 passes of > PS: John Delacour's text filter is a much nicer general solution; the only > Regards, > Patrick Woolsey You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||