Menu

searching omit text

khux
2009-07-07
2012-11-13
  • khux

    khux - 2009-07-07

    Hi, this is probably a pretty basic question, but I can't find the answer here.

    I'm using Notepad++ to search through huge txt files. I want to run a search but omit certain text in my results. for example.. I want to search for any lines containing "http" but omit any lines that contain "HVU:B1"

    Thanks!
    khux

     
    • cchris

      cchris - 2009-07-08

      1/ To put text into the clipboard, type it and teh n cut or copy it.
      2/ The "Mark line" option, as well as "Style found token", work only with the Find All button, not any other button.

      CChris

       
    • cchris

      cchris - 2009-07-07

      It looks like you are performing nested searches. This is most easily done checking the "Mark lines" and the Find all command.
      Search for lines that have "http". Copy bookmarked lines, paste them on a scratch document (or in place of the needlessly huge initial one).
      Now comes TextFX Viz with its Show lines without (clipboard) command. This will hide undesirable lines. Select All, then Cut invisible selection to weed them out. Add or iterate such cropping as per  your requirements.

      CChris

       
    • khux

      khux - 2009-07-07

      Thanks Chris. How do I add "HVU:B1" to the clipboard?

       
    • khux

      khux - 2009-07-07

      sorry.. I should mention I have multiple files open so I use 'Find All in All Open Documents'

       
MongoDB Logo MongoDB