20429Re: [NTB] Search and replace query.
- Feb 3, 2008On Sun, 03 Feb 2008 19:52:49 -0500, buralex@... wrote:
> John Fitzsimons <johnf@...> said on Feb 03, 2008 19:11Hi Alex,
>-0500 (in part):
>> I want to find all lines in a document that contain "a".Actually the letter was "i" but it was the general syntax I was
>> I want to find all lines in a document that don't contain "a".
>> How do I do this using the find or search and replace options ? IWow ! Excellent. Thanks for the very speedy/accurate reply, it is very
>> have tried things such as ^.@(a).@$\n and it doesn't work. :-(
>> Using NoteTab Pro 4.95
>not sure what you thought the ampersands (@) would do, but circumflex
>before a character in a character class says:
>any character except it ie. [^a] matches NOT "a"
>so ^[^a]+$ matches ... beginning at char 1 a string of NOT a's through
>the end of line ($)
much appreciated. :-) :-) :-)
Here is what I started with ;
Using your ^[^i]+$ replaced with nothing got me......
Is there any way I can adapt that to get....
In other words, find the words without "i", replace them with nothing,
and delete the empty line ? Leaving behind the list of words/lines
containing "i" without spaces ?
- << Previous post in topic Next post in topic >>