Need help please

marvin carandang marvin_ee2006 at yahoo.com
Thu Jul 30 03:29:12 CEST 2009


Hi Andrew,

Thanks for this. This is really interesting to know. I am lucky though, because in this case...the length of the characters that I want deleted is certainly less than 5000. 




________________________________
From: Andrew Hood <ajhood at fl.net.au>
To: General NEdit discussion list <discuss at nedit.org>
Sent: Thursday, July 30, 2009 12:04:34 AM
Subject: Re: Need help please

Offer Kaye wrote:
> On Wed, Jul 29, 2009 at 3:03 PM, marvin carandang wrote:
> 
>>Hello Nedit Experts,
>>
>>I have a long list of digital pattern and would like to delete certain groups of texts in between. I attached a snap-shot below. ( I just changed the content due to confidentiality reasons):
>>
> 
> 
> Since nedit's find-replace dialog can use regular expressions it is
> quite powerful. If you type the following in the Find field of the
> Replace dialog:
> 
> (Page\s+\d+).+\n(?n.+?)Example\s*\n
> 
> and the following in the Replace field:
> 
> \1\n
> 
> 
> This should do the job. Of course you need to check the "Regular
> Expression" checkbox before hitting the "Window" button.

One caveat. The default maximum length of a search/replace string is
possibly not enough. Recent versions of source/nedit.h have:

#define SEARCHMAX 5119

If you are happy building your own version you can increase this and
recompile. I usually change it to 32767.


-- 
There's no point in being grown up if you can't be childish sometimes.
                -- Dr. Who
-- 
NEdit Discuss mailing list - Discuss at nedit.org
http://www.nedit.org/mailman/listinfo/discuss



      


More information about the Discuss mailing list