Welcome to the Mythicsoft Q&A site for:

- Agent Ransack
- FileLocator Lite
- FileLocator Pro

Please feel free to ask any questions on these products or even answer other community member questions.

Useful Links:

- Contact Us
- Help Manuals
- Mythicsoft Home
0 votes

I don't remember how I wroted the "persistent search filter" definitions for excluding the bin and obj folders in my C# project folders.
I've tried this in "Location" with choosing "regular expression":
!^(bin|obj)$
and with "plain text"
NOT:obj
but it doesn't work. And it seems to me that it would work only for complete directories.
But until some days ago it works??
Thanks in advance for any answer.

by (40 points)

1 Answer

+1 vote
 
Best answer

Try adding a regex location filter:

-\\(bin|obj)\\

Exclude bin/obj folder

The '-' matches the whole file path and excludes any path that matches the expression. The purpose of the '\' at the beginning and end of the expression is to match only a specific path part e.g. ... \bin\ ..., instead of partially matching the path part, e.g. ... \ turbine \ ...

by (30.1k points)
Many thanks.
But strangely following three work on my machine:
-\\(bin|obj)\\
-\\(bin|obj\\)
-(bin|obj)
Is there an description or tutorial where I could read about the syntyx?
I've edited the answer with additional information. Does that help?
...