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

Re: [Clip] regex clip to remove lines not containing

Expand Messages
  • Sheri
    ... Hi Don, I don t see a need for arrays or substrings. In fact, your pattern doesn t have any substrings. This is what I would have done (but I used five,
    Message 1 of 8 , Sep 10 7:15 AM
    • 0 Attachment
      Don - HtmlFixIt.com wrote:
      > John Shotsky wrote:
      >
      >> Oops, left out a bracket..sheesh.
      >> ^!Replace "^\s*[A-Z].*\R" >> "" ARSTW
      >>
      > Yes John.
      >
      > That was what I was trying to do. I was trying to figure it out in
      > reverse in my mind, I guess. I was trying to negate the regex I had.
      > Not negate in reverse or something like that.
      >
      > Sheri, I was just playing with: ^!SetArray %Array%=^$GetReSubStrings$
      > As a followup to your getdocmatchall suggestion. But I think John's
      > solution is what I was after this time.
      >
      >
      Hi Don,

      I don't see a need for arrays or substrings. In fact, your pattern
      doesn't have any substrings. This is what I would have done (but I used
      five, not four, spaces in front of \d.* to match your sample):

      ^!Select All
      ^!SetListDelimiter ^P
      ^$GetDocMatchAll("^ \d.*";0)$
      ;end of clip

      Regards,
      Sheri
    Your message has been successfully submitted and would be delivered to recipients shortly.