Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Find in Files filter, include AND exclude combined

    General Discussion
    2
    2
    63
    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.
    • Jason Carlton
      Jason Carlton last edited by

      When using Find in Files, I would like to have a filter that will tell it to scan PHP, JS, CSS, CGI, and LIB, but ignore anything in the “backup” directory.

      I thought this would work, but it doesn’t:

      *.php *.js *.css *.cgi *.lib !*backup
      

      I’m guessing that this assumes that these are all “OR” delimited. So then I tried these:

      !*backup && (*.php *.js *.css *.cgi *.lib)
      !*backup* && (*.php *.js *.css *.cgi *.lib)
      

      but it still returned files that were in the backup directory.

      Any other suggestions?

      Terry R 1 Reply Last reply Reply Quote 0
      • Terry R
        Terry R @Jason Carlton last edited by

        @Jason-Carlton said in Find in Files filter, include AND exclude combined:

        I thought this would work, but it doesn’t:

        Did you read the online manual about the specific requirements of this tab? Try looking at this section of the manual. Ver 8.2 and better will allow what you need, but you must define it correctly.

        Terry

        1 Reply Last reply Reply Quote 2
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors