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

22033RE: [Clip] regex to delete all lines not containing

Expand Messages
  • John Shotsky
    Sep 3, 2011
    • 0 Attachment
      I have a 900K regex library, and I run it on 100,000 line files with no such limitations. I suspect there is something
      else going on � computer memory, swap file, unexpected stuff in the file, etc. Since you appear to not want to provide
      an example, all we can do is guess.

      Regards,
      John

      From: ntb-clips@yahoogroups.com [mailto:ntb-clips@yahoogroups.com] On Behalf Of Don
      Sent: Saturday, September 03, 2011 10:14
      To: ntb-clips@yahoogroups.com
      Subject: Re: [Clip] regex to delete all lines not containing


      this works fine on 500 and 1000 lines but not on 1500 lines

      it removes all lines not containing something which can be alternate
      words (since it's regex) so there must be a limitation

      I used to do it with a several loop clip.

      On 9/3/2011 10:54 AM, John Shotsky wrote:
      > There is no file size limitation. but what are you trying to do?
      > If it's what I think, I'd probably just use a replace to tag the beginnings of lines with a special character that DO
      > contain what you want, then delete all the others. Then remove the tag.
      > Three lines of fast running code.
      >
      > Regards,
      > John
      >
      > From: ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> [mailto:ntb-clips@yahoogroups.com
      <mailto:ntb-clips%40yahoogroups.com> ] On Behalf Of Don
      > Sent: Saturday, September 03, 2011 07:46
      > To: ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com>
      > Subject: [Clip] regex to delete all lines not containing
      >
      >
      > Suddenly not working ... thought it did.
      >
      > File has 1300 lines, is there a file size max on this working?
      >
      > ^!Set %DataTested%=^?{RegEx Term to Search For, Pipe Separated "or"}
      > ^!Select All
      > ^!SetListDelimiter ^P
      > ^!Set %DataOutput%="^$GetDocMatchAll("^.*(^%DataTested%).*$")$"
      > ^!InsertText ^%DataOutput%
      >
      >



      [Non-text portions of this message have been removed]
    • Show all 9 messages in this topic