Loading ...
Sorry, an error occurred while loading the content.

Re: [Clip] Re: reg exp & clip solution

Expand Messages
  • Alan C.
    ... Glad is handy for you. There s also GetFieldPos or similar (returns a data from a specified field of a delimited line) which could use to take the place
    Message 1 of 5 , Nov 2, 2003
    • 0 Attachment
      On Sun, 02 Nov 2003 01:12:19 -0800, BHCS wrote:
      >�Thanks to both of you (Ben B &�Alan C). Both clips work great

      Glad is handy for you. There's also

      GetFieldPos

      or similar (returns a data from a specified field of a delimited line) which could use to take the place of that regex find command. but then you'd need check if it matched then if so, snag that line

      ^!IfMatch

      Just keep using what you already have (it works good, right?). I just mentioned the above; don't bother to get confused by it.

      >�have new questions:
      >� �- can you make these clips CUT (as in Ctrl+X) the specified client
      >�that it selects &�[currently] copies to the new file?

      please look carefully (compare) at the next two (snippets) (how to add one new line)

      ; 1
      ^!IfError finish
      ^!AppendToFile "^%path%^%scratchdoc%" ^$GetSelection$^%NL%
      ^!GoTo repeat
      :finish

      ; 2
      ^!IfError finish
      ^!AppendToFile "^%path%^%scratchdoc%" ^$GetSelection$^%NL%
      ; add new line the next line deletes the client from source doc
      ^!Replace "^$GetSelection$" >> "^%EMPTY%" IS
      ^!GoTo repeat
      :finish

      ; ----<end of those two----<----------------------------------

      >� �- how to you make the "^!Set %client%=^?[Enter client name]" entry
      >�case insensitive?

      help > help on clip programming > click on the index tab

      then scroll down to: ^!Find (for that matter, you can also scroll to any other of the commands, functions, or pre defined variables, some of which I've referenced elsewhere within this reply)

      where you can peruse Find's "options" option I is what do it. thus:

      ^!Find "".*",".*","^%client%",".*",".*",".*",".*",".*"" RS

      alter it, make it become with 3 options instead of its former 2 - thus (notice I at end)

      ^!Find "".*",".*","^%client%",".*",".*",".*",".*",".*"" RSI

      ; -----end-----

      --
      Alan.
    Your message has been successfully submitted and would be delivered to recipients shortly.