Find all files that don't have folders in path

Hi, if i need to find all the files (or some special file) that are not located in folders , how is it possible. Is it possible to “exclude all the folders” from the search?
Something like "search: -path: " ?
I have identical files in folder “Obsidian/untitled” and in vault folder file “untitled” ; is it possible to exclude all folders so that files was searched only in vault itself without folders?
Thanks very much!

Hi.

I believe this will do the trick:

-path:"/"

1 Like

Hi , yes works well! I wish i knew Regex as good as you are :wink: