Flo (and all) Attempting to use the negative assertion function discussed below, but with bewildering results. I have two versions of a clip. One works as...
563
John Shotsky
shotsky1
May 17, 2012 2:38 am
Further testing shows that I didn't have the clips exactly the same in 6.2 and 7. In one case there is an [s?]on the end of notes, and in the other case there...
564
flo.gehrke
May 17, 2012 7:17 pm
... Thanks, Robert! I see that last version working and getting to the result that you had in mind. Actually, I never talked of inserting the result into the...
565
Robert Bull
barlennan
May 17, 2012 8:35 pm
Hello, flo.gehrke; Thursday, May 17, 2012, 8:17:01 PM, you wrote: fg> I see that last version working and getting to the result that you fg> had in mind. What...
566
Kees Nuyt
knuyt
May 17, 2012 8:51 pm
... PRINT is not the same as print . gawk is case-sensitive. -- Regards, Kees Nuyt...
567
mycroftj
May 27, 2012 11:07 pm
I have been at this all day and am still stuck. I want to have a clip run GAWK code from an external file against an external data file and send all the output...
568
mycroftj
May 28, 2012 6:30 pm
Found an answer. An idea came to me this morning. After playing with all the fancy DOS NT commands, just plain ^!"^%GAWK_Executable%" -f ... worked. I'm sure...
569
Art Kocsis
artkns
Sep 23, 2012 9:39 am
I am past pulling hair and am now down to scalp and it's getting bloody so maybe someone here can help. I am trying to replace all commas between matched pairs...
570
Axel Berger
absalom_nemini
Sep 23, 2012 10:19 am
... I other words all those inside quotes. I have not tried anything, but I believe ^!SetArray deals with this problem correctly, so you can then then delete...
571
John Shotsky
shotsky1
Sep 23, 2012 1:05 pm
Art, ;Replace first double quote with opening bracket ^!Replace "^[^\r\n92;"]*\K92;"" >> "[" ARSW ;Replace next double quote with closing bracket ^!Replace...
572
Art Kocsis
artkns
Sep 28, 2012 5:49 am
... Thank you, Axel, for responding. Although I am not sure exactly what you had in mind using arrays I know there are many ways using clip commands to parse...
573
Art Kocsis
artkns
Sep 28, 2012 5:50 am
... Thank you John for your response. It does seem to work fine. I made some slight changes to your suggestion: Used left & right chevrons as the [] chars...
574
Art Kocsis
artkns
Sep 28, 2012 5:50 am
According the RegEx help file: By default, the quantifiers are "greedy", that is, they match as much as possible (up to the maximum number of permitted times),...
575
John Shotsky
shotsky1
Sep 28, 2012 11:42 am
I think it is working as it is supposed to. You probably don't have your cursor in the line at the time you are testing. If it is anywhere else, the 'zero or...
576
Art Kocsis
artkns
Sep 28, 2012 2:20 pm
aaaaaaaaaaa I disagree that it is working as it is supposed to. Reread the doc - for greedy it says "the maximum number", not zero. Even starting from a ...
577
Eric Fookes
eric_fookes
Sep 28, 2012 2:33 pm
Hi Art, ... Indeed, it looks like a bug in the regex engine of those NoteTab versions. I just tested NoteTab 7 and it worked correctly. So it seems the updated...
578
John Shotsky
shotsky1
Sep 28, 2012 2:43 pm
It may be a matter of opinion, but when a * is used, it will first evaluate the very next character following the cursor or the point in the line that is being...
579
flo.gehrke
Sep 28, 2012 2:56 pm
... No bug -- neither in PCRE nor in NTb. 'a*' is equivalent to a{0,}. So, at the beginning of the subject string, the engine achieves a match of zero length...
580
Art Kocsis
artkns
Sep 29, 2012 12:10 am
Yes, a zero length match satisfies a{0,}. So does all of other the remaining partial matches. But the whole point is that a* is supposed to be greedy. Look at...
581
flo.gehrke
Sep 29, 2012 1:51 pm
I understand that you are testing a subject string like... However ... aaa ... starting from the beginning of the line. So 'aaa' is not at the start of line...
582
Axel Berger
absalom_nemini
Sep 29, 2012 2:07 pm
... I think in practice a star quantifier on its own is meaningless, there must be at least one other thing in the pattern. If you're interested in one...
583
flo.gehrke
Sep 30, 2012 12:39 pm
... In this context, I understood that 'a' is just an element that, "in practice", would primarily represent an element in a more complex pattern. In this...
584
John Shotsky
shotsky1
Sep 30, 2012 1:11 pm
I agree, and use the star heavily in my clip libraries. Regards, John RecipeTools Web Site: <http://recipetools.gotdns.com/> http://recipetools.gotdns.com/ ...
585
flo.gehrke
Sep 30, 2012 3:31 pm
... A single '«[^\,]*?»' or even '«[^,]+»39; (no need to escape comma in character class) would match that '«yyyy»' section but your RegEx is demanding...
586
EB
ea_young
Oct 10, 2012 1:04 am
I have a bunch of lines in a file that look something like this: Ga53t76lah/Z3vdeg14/V0c2/?freds=OTvvA4OfhbfjI6MQ,0,0,0,&p=31 I want to strip everything to the...
587
John Shotsky
shotsky1
Oct 10, 2012 1:11 am
\? Regards, John RecipeTools Web Site: <http://recipetools.gotdns.com/> http://recipetools.gotdns.com/ From: ntb-scripts@yahoogroups.com...
588
Robert Bull
barlennan
Oct 10, 2012 2:02 pm
Wednesday, October 10, 2012, 2:00:55 AM, EB wrote: E> / ?fred(.*)p=31 did not work as a search string in FIND. I think John's right to suggest trying...
589
John Shotsky
shotsky1
Oct 10, 2012 2:14 pm
I use this all the time to find ends of sentences: (\.|\?|!)(\R|\x20|\)|92;") It could also be done using classes (which don't need escapes except for a few...
590
flo.gehrke
Oct 10, 2012 3:40 pm
... An alternative is to search the '?' in hex '\x3F39; or octal '\07739;. Regards, Flo...
591
EB
ea_young
Oct 10, 2012 4:35 pm
As is so often the case, I overlooked the obvious. I thought I had tried pretty much everything - but apparently not. The \ seems to work. THANK YOU!...