... With 'I' and '(?i)', the 'ignore case' option is applied even twice in your pattern -- although, like 'T', it isn't needed here. The RegEx matches 'MON' or...
540
flo.gehrke
May 10, 2012 1:35 pm
... Upps, sorry, I meant... ^(?>(\d{2,4}/?){3}\x2092;((?!Mon|Tue|Wed|Thu|Fri|Sat|Sun).{3}\)) of course ;-) Flo...
541
John Shotsky
shotsky1
May 10, 2012 2:02 pm
I am not understanding something here – The criteria was: three characters that are *NOT* MON|TUE|WED|THU|FRI|SAT|SUN How is this avoiding those strings?...
542
flo.gehrke
May 10, 2012 4:03 pm
... John, The second part of that RegEx... \((?!Mon|Tue|Wed|Thu|Fri|Sat|Sun).{3}\) matches an opening and a closing literal bracket '(...)39; embracing three...
543
John Shotsky
shotsky1
May 10, 2012 4:13 pm
Flo, Thank you. Always nice to learn something new. I will play around with this until I have it fully internalized. I have needed this function quite a few...
544
Art Kocsis
artkns
May 10, 2012 9:15 pm
... Don't you mean three CHARACTERS instead of three DIGITS? The "." matches any character, "\d" is used match any digit. Just trying to keep things clear for...
545
flo.gehrke
May 10, 2012 11:16 pm
... Art, Thanks for correcting my bad English! Of course, '.{3}' means any character, not numbers (digits) only. Please give me a helping hand: '2012' is a...
546
flo.gehrke
May 10, 2012 11:16 pm
Hi GAWK experts! I can clearly see how to run a GAWK script from a NT clip. But I get into trouble whith redirecting GAWK output to a clip. Example: Given some...
547
Art Kocsis
artkns
May 11, 2012 1:28 am
... Correct. ... No, it has five letters. ... Expensive!!! He he he. Namaste', Art Young at heart Slightly older in other places A wise ass all throughout!...
548
computerhusky
May 11, 2012 9:04 am
Hi Flo, I'd call 'Boeing-747' a 10-character string (or a large aeroplane). And 'Peter39; is a 5 letter name (or string) :-) Kind regards Thomas Von iPad...
549
Kees Nuyt
knuyt
May 12, 2012 8:25 pm
... The canonical way to keep the list intact is to always include a print action: ========================================== BEGIN{ # init code max = 0 ...
550
mycroftj
May 12, 2012 9:08 pm
I am going to be teaching myself GAWK as soon as I have some time and this is a question I'm sure I will want the answer to. I know very little so far but have...
551
mycroftj
May 12, 2012 9:12 pm
... Flo, Thank you so much for that. I was close! For some reason, I never realized a look-behind or look-ahead could come in the middle of a regexp. I don't...
552
flo.gehrke
May 13, 2012 11:47 am
... Kees, Thanks, your solution is (almost) perfectly doing the job! Also thanks to Joy for considering this problem. The only drawback is that we still have...
553
Robert Bull
barlennan
May 13, 2012 3:24 pm
Hello, flo.gehrke; Sunday, May 13, 2012, 12:47:23 PM, you wrote: fg> The only drawback is that we still have to create an output file. fg> Is there no way to...
554
flo.gehrke
May 13, 2012 9:56 pm
... Robert, Thanks for your proposal. However, the point is NOT to print to a file. Also, I think there's no need to look for an utility programm for sending...
555
mycroftj
May 14, 2012 4:17 pm
... OK. I've spent all morning trying to come up with a solution. I've never done this before and have a few questions to work through on my journey. Why does...
556
mycroftj
May 14, 2012 4:30 pm
... Did you ever get an answer to this part of this problem??? I think the problem here is the missing '-f' in the InsertText statement. Looks like it should...
557
flo.gehrke
May 14, 2012 8:19 pm
... Joy, diodeom described a working solution with Lua. IMHO, we can't speak of a "missing '-f' in the InsertText statement": In diodeom's model, the input...
558
Robert Bull
barlennan
May 14, 2012 9:45 pm
Hello, flo.gehrke; Sunday, May 13, 2012, 10:56:52 PM, you wrote: fg> Also, I think there's no need to look for an utility programm for fg> sending file...
559
mycroftj
May 14, 2012 9:55 pm
... Accchh. Sorry about that. You are correct about the -f. I did see the input was from a variable then forgot later on. Between testing different versions of...
560
flo.gehrke
May 14, 2012 10:53 pm
... Robert, Yes, '^!Keyboard CTRL+Z' or '^!Toolbar Undo' is a good workaround -- at least in this specific example. Nevertheless, I'm looking forward to see a...
561
Robert Bull
barlennan
May 16, 2012 8:35 pm
Hello, flo.gehrke; Monday, May 14, 2012, 11:53:02 PM, you wrote: fg> Nevertheless, I'm looking forward to see a solution where a fg> selection from the active...
562
John Shotsky
shotsky1
May 17, 2012 1:05 am
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...