|
Post by Stefan on Nov 16, 2021 5:28:51 GMT -5
Observed using v21314 beta. Not sure how long this has been so, though.
Given data like
000001 DO
000002 DONT
000003 ADO
000004 ADOPT
000005 DOING
The command FIND ALL 'DO' PREFIX should (and does) find 'DO' on lines 2 and 5 only.
I reckon that NX ALL 'DO' PREFIX should exclude all lines except 2 and 5. But it includes line 1 as well.
As far as I can see, CHANGE and NFIND operate correctly.
|
|
|
Post by George on Nov 16, 2021 10:57:37 GMT -5
Stefan: Robert: Well, yes there is only one search engine, until you want all the N commands (NF, NX etc.). Then guess what, there is another complete 'one search does all' for the negative case.
If you think of what a negative search does and try intertwine it into the positive search logic your brain will blow a fuse in the attempt. I know, I tried it.
So it's not surprising there may be differences between the two.
I looked at both the PREFIX and SUFFIX handling in the negative search. Both were faulty. PREFIX failed to ensure there was a WORD character following the prefix. And SUFFIX failed to ensure there WASN'T a WORD character following the suffix.
Both now are corrected. Working in that reverse world of code is tough trying to keep it straight in your mind.
George
|
|