• Login
Community
  • Login

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

Scheduled Pinned Locked Moved General Discussion
10 Posts 4 Posters 852 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.
  • C
    Cletos
    last edited by Mar 23, 2020, 9:48 AM

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

    A 1 Reply Last reply Mar 23, 2020, 11:34 AM Reply Quote 0
    • A
      abdulbadii @Cletos
      last edited by Mar 23, 2020, 11:34 AM

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

      1 Reply Last reply Reply Quote 0
      • G
        guy038
        last edited by guy038 Mar 23, 2020, 3:25 PM Mar 23, 2020, 12:16 PM

        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
        • C
          Cletos
          last edited by Mar 23, 2020, 6:29 PM

          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.

          A 1 Reply Last reply Mar 23, 2020, 6:47 PM Reply Quote 0
          • A
            Alan Kilborn @Cletos
            last edited by Mar 23, 2020, 6:47 PM

            @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
            • C
              Cletos
              last edited by Mar 23, 2020, 7:49 PM

              Absolutely nothing.

              A 1 Reply Last reply Mar 23, 2020, 7:53 PM Reply Quote 1
              • A
                Alan Kilborn @Cletos
                last edited by Mar 23, 2020, 7:53 PM

                @Cletos

                Absolutely nothing.

                Good – because you can’t. :-)

                1 Reply Last reply Reply Quote 0
                • C
                  Cletos
                  last edited by Mar 23, 2020, 8:44 PM

                  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.

                  A 1 Reply Last reply Mar 23, 2020, 9:01 PM Reply Quote 0
                  • A
                    Alan Kilborn @Cletos
                    last edited by Mar 23, 2020, 9:01 PM

                    @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
                    • C
                      Cletos
                      last edited by Mar 23, 2020, 9:27 PM

                      Alright, thank you!

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