Community
    • Login

    How could one in the search exclude files, e.g. all images?

    Scheduled Pinned Locked Moved General Discussion
    10 Posts 4 Posters 854 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CletosC
      Cletos
      last edited by

      How could one in the search exclude files, e.g. images, e.g. *.jpg, *.png, etc.(?):
      [IMG]https://i.imgur.com/dXL4vJb.png[/IMG]

      abdulbadiiA 1 Reply Last reply Reply Quote 0
      • abdulbadiiA
        abdulbadii @Cletos
        last edited by

        for now just use the text files filter eg. *.ini *.bat *.c *.sh *.txt etc

        1 Reply Last reply Reply Quote 0
        • guy038G
          guy038
          last edited by guy038

          Hi, @cletos, @abdulbadii and All,

          To exclude some files, with specific extensions, simply use the syntax, in the Filters: zone :

          *.* !*.jpg !*.png

          • Note that your N++ release must be >= 7.8.2

          • Refer also to all posts of the discussion, below :

          https://community.notepad-plus-plus.org/topic/18609/question-regarding-new-find-in-files-filter-excluding-ability-in-version-7-8-2/1

          Best Regards,

          guy038

          1 Reply Last reply Reply Quote 3
          • CletosC
            Cletos
            last edited by

            Hello guy038 and abdulbadii,

            Many thanks!

            So I can insert something like that - . !.jpg !.png - separated by spaces or semicolon.

            And many thanks for the link as well.

            Alan KilbornA 1 Reply Last reply Reply Quote 0
            • Alan KilbornA
              Alan Kilborn @Cletos
              last edited by

              @Cletos said in How could one in the search exclude files, e.g. all images?:

              separated by … semicolon

              What in @guy038 's posting leads you to believe you can use semicolon as a separator??

              1 Reply Last reply Reply Quote 0
              • CletosC
                Cletos
                last edited by

                Absolutely nothing.

                Alan KilbornA 1 Reply Last reply Reply Quote 1
                • Alan KilbornA
                  Alan Kilborn @Cletos
                  last edited by

                  @Cletos

                  Absolutely nothing.

                  Good – because you can’t. :-)

                  1 Reply Last reply Reply Quote 0
                  • CletosC
                    Cletos
                    last edited by

                    Yes, I would think so, too. But I thought a semicolon (and comma) generally is used as a separator (very often) in a search / replace field, may be also for such regular expressions.

                    Alan KilbornA 1 Reply Last reply Reply Quote 0
                    • Alan KilbornA
                      Alan Kilborn @Cletos
                      last edited by

                      @Cletos

                      It’s hard to pick a good separator, because most everything that makes sense to use can also be used in a file name.

                      may be also for such regular expressions.

                      No regular expressions used in this, either!

                      1 Reply Last reply Reply Quote 1
                      • CletosC
                        Cletos
                        last edited by

                        Alright, thank you!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        The Community of users of the Notepad++ text editor.
                        Powered by NodeBB | Contributors