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

256 results from messages in ntb-clips

Advanced Search
  • John wrote: > > The problem happens when you blow by the point you are > looking for, and once you've passed it, you are screwed. > You can only go full cycle after that. I've done it more > than once at one time, trust me. > Here's a simple (and rather unpolished) clip that aims to provide "Find Previous" functionality for just such occasions. It assumes that the Find and Replace...
    diodeom Apr 10, 2012
  • I wrote: > > ^!Find ""\S(?=\s*+\Z)" WRS > Sorry, an extra quotation mark sneaked up on me. It should be: ^!Find "\S(?=\s*+\Z)" WRS
    diodeom Apr 6, 2012
  • Celtics2000 wrote: > > Hi! > > At the very end of a document(past all of the text)I want to create a Clip to find the nearest non-whitespace character BEFORE it. > Try the following: ^!Find ""\S(?=\s*+\Z)" WRS The parenthesized section is a look-ahead (to exclude its target from capture): \S -- non-whitespace char (?= -- ahead of... \s*+ -- any number of whitespace \Z -- at the end...
    diodeom Apr 6, 2012
  • Fetching Sponsored Content...
  • John wrote: > > The problem could be partly resolved by having a 'previous' choice rather than an 'up' choice. The problem happens when > you blow by the point you are looking for, and once you've passed it, you are screwed. You can only go full cycle after > that. I've done it more than once at one time, trust me. But if it stored the matches, you could back up through > previous...
    diodeom Apr 5, 2012
  • --- In ntb-clips@^$1, Eric Fookes wrote: > > * Updated Clip functions to support regular expressions and wildcards: > ^$StrCount("SubStr";"Str"[;Options])$ > ^$StrPos("SubStr";"Str"[;Options])$ > ^$StrReplace("SubStr";"Str"[;Options])$ > > Options: > C: Searches for whole words only. > I: Ignores character case. > R: Specifies that the search criteria represents a regular...
    diodeom Mar 28, 2012
  • John Shotsky wrote: > > Thanks! Has anyone any idea when the next version of NoteTab might appear? > Sure, John. I would probably declare that I anticipate any day now NoteTab being released as a cross-platform open-source software, and it might be a really good idea for us to brush up on Object Pascal. That is, you know, if I were to play devil's advocate. :)
    diodeom Nov 15, 2011
  • Flo wrote: > > Just for the fun of it, I would like to present my first approach. It's dealing with a pure list of 3-digit-alpha-codes from 'aaa' to 'zzz' without any further stuff in the lines. > > It's quite fast as well since it doesn't move from line to line but assigns the whole list to an array. The result is a list of codes with gaps, i.e. codes that do not immediately...
    diodeom Nov 13, 2011
  • I wrote: > > ;Check if given index is present where expected > :Roll_call > ^!Jump +1 > ^!IfEmpty "^$GetLine$" End > ^!If "^%1st%^%2nd%^%3rd%" = "^$GetLine$" Next_Index Naturally, for working with indexed lines of data zby Stuff zbz Other stuff zca Etc. the comparing statement would look like ^!If "^%1st%^%2nd%^%3rd%" = "^$StrCopyLeft("^$GetLine$";3)$" Next_Index
    diodeom Nov 12, 2011
  • Flo wrote: > > I've got a database where each record is indexed with an alpha-code from 'aaa' to 'zzz'. > > Every now and then, I want to find out if there is a gap in a sorted list of these codes. There's a gap, for example, in... > > zbx > zby > zbz > zca > zcc > zcd > The following basic take looks for what the next index in sequence should be and flags a gap if no match is...
    diodeom Nov 12, 2011
  • "C" wrote: > > > In other words, I need to use a variable in place of the (....), because will be a lot of different words. > Either: ^!Set %word%=yahoo ^!Replace "^.*?\Q^%word%\E.*(\R|\Z)" >> "" WARS or: ^!Set %word%=yahoo ^!Find ^%word% WITS ^!IfError End ^!DeleteLine ^!Goto Skip_-3
    diodeom Nov 3, 2011