How to use 'File/directory pattern' in the Search area?

Can someone please explain what this does and how to use it?

image

This cropped up before, but I can’t find the thread. I made a note for myself:

File/Directory Patterns:
admin/** (search in admin folder + subfolders)
admin/somefolder/* (search in specIfied folder only)
dmxConnect/api/admin/**
name*.php/ (search within files starting with ‘name’)

4 Likes

I am trying to work out how to EXCLUDE any files with a double underscore in the filename

“__”

and EXCLUDE any files with six numbers at the end of the filename

“testname456322.php”

Can anyone help?

I have tried options using the GLOB pattern such as

**[!__]

but that doesn’t work and I have also tried various regex options but can’t get anything ‘regex’ to work