110

When using Notepad++ Find in Files feature is there a way to adjust the filter, so that it will search more than one filetype (e.g. *.c and *.h)?

Breakthrough
  • 34,497
Jim Fell
  • 5,906

1 Answers1

165

Separate multiple filters with a semi-colon (;).

*.txt ; *.log

Or you can just use a space

*.txt *.log
random
  • 14,991
Beaner
  • 3,651
  • 1
    Is there any way to negate a wildcard? ex: .vb but not .Designer.vb? – QuickDanger Oct 11 '17 at 19:44
  • This is the standard open file dialog. I don't believe there is any negation. The best you can do is to carefully craft a filter that doesn't match the file you don't want. Maybe all files that have a letter or letter combination that prevents your file from showing, *a*.vb? or a file name length that doesn't match the length of the file you don't want, ?????.vb? – Beaner Oct 11 '17 at 23:01
  • 2
    @QuickDanger yes, see https://stackoverflow.com/a/59419084/428724 – wezten Mar 29 '22 at 12:42