Loading ...
Sorry, an error occurred while loading the content.
Advanced Search
Author
Subject
Message
Special notice only

22 results from messages in ntb-scripts

Advanced Search
  • I use this all the time to find ends of sentences: (\.|\?|!)(\R|\x20|\)|\") It could also be done using classes (which don't need escapes except for a few items): [?.!]+[")\x20]+ Regards, John RecipeTools Web Site: http://recipetools.gotdns.com/ From: ntb-scripts@^$1 [mailto:ntb-scripts@^$2] On Behalf Of Robert Bull Sent: Wednesday, October 10, 2012 07:02 To: EB Subject: Re: [NTS...
    John Shotsky Oct 10, 2012
  • \? Regards, John RecipeTools Web Site: http://recipetools.gotdns.com/ From: ntb-scripts@^$1 [mailto:ntb-scripts@^$2] On Behalf Of EB Sent: Tuesday, October 09, 2012 18:01 To: ntb-scripts@^$3 Subject: [NTS] How to search a QUESTION MARK in a regular expression I have a bunch of lines in a file that look something like this: Ga53t76lah/Z3vdeg14/V0c2/?freds=OTvvA4OfhbfjI6MQ,0,0,0,&p...
    John Shotsky Oct 9, 2012
  • I agree, and use the star heavily in my clip libraries. Regards, John RecipeTools Web Site: http://recipetools.gotdns.com/ From: ntb-scripts@^$1 [mailto:ntb-scripts@^$2] On Behalf Of flo.gehrke Sent: Sunday, September 30, 2012 05:39 To: ntb-scripts@^$3 Subject: [NTS] Re: NTB or RegEx Bug --- In ntb-scripts@^$4 , Axel Berger wrote: > > "flo.gehrke" wrote: > > You could use 'a*a...
    John Shotsky Sep 30, 2012
  • Fetching Sponsored Content...
  • 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 evaluated. If it meets the condition, it will stop. (In this case, the zero condition is true, so it stops.) Thus, if the first character is a space or a CR, it will stop. I have run into this issue in programming before...
    John Shotsky Sep 28, 2012
  • 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 more' is met by a CR. If you place it anywhere in the line, it will match from the cursor to the end of the line, as expected. Regards, John RecipeTools Web Site: http://recipetools.gotdns.com/ From: ntb-scripts@^$1 [mailto...
    John Shotsky Sep 28, 2012
  • Art, ;Replace first double quote with opening bracket ^!Replace "^[^\r\n\"]*\K\"" >> "[" ARSW ;Replace next double quote with closing bracket ^!Replace "^[^\r\n\"]*\K\"" >> "]" ARSW ;Repeat as long as double quotes exist ^!IfError Next Else Skip_-2 ;Replace commas between opening and closing brackets ^!Replace "\[[^\r\n,\]]*\K,(?=.*\])" >> "" ARSW ^!IfError Next Else Skip_-1...
    John Shotsky Sep 23, 2012
  • 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 isn't. It is when the question mark is present that the failure occurs in both 6.2 and 7. But still, I would have expected it to work, especially because the 's' is present - so that condition should have been satisfied...
    John Shotsky May 16, 2012
  • 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 expected, the other doesn't. I can't see why the difference. Here are the two versions. To run them, just comment one out and run the other. ;^!Replace "^(Notes)(?!::)" >> "Dir::$1" ARSW ^!Replace "^Notes(?!::)" >> "Dir::" ARSW...
    John Shotsky May 16, 2012
  • 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 times and have 'tokenized' and then used a character class instead. (And then untokenized.) This is obviously a better way to do it. Regards, John RecipeTools Web Site: http://recipetools.gotdns.com/ From: ntb-scripts@^$1...
    John Shotsky May 10, 2012
  • 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? I've wanted to do this text that didn't contain a certain string on multiple occasions. Regards, John RecipeTools Web Site: http://recipetools.gotdns.com/ From: ntb-scripts@^$1 [mailto:ntb-scripts@^$2] On Behalf Of flo.gehrke...
    John Shotsky May 10, 2012