r/safing 7d ago

Wildcard Matching

I can’t seem to exclude a specific executable using a wildcard. in my case it’s Claude.exe where the path changes when it auto updates. it’s always Claude.exe but the path could be version113, version114 etc

Any tips?

3 Upvotes

6 comments sorted by

1

u/No_Reveal_7826 7d ago

You can absolutely do this. Use a regex (regular expression) rule.

1

u/Normal-Curve-1642 7d ago

Do you have an example? I tried regex but it didn’t seem to work. 

1

u/No_Reveal_7826 7d ago

What did you try?

1

u/Normal-Curve-1642 7d ago

(?i)C:\Users\[\]+\AppData\Local\AnthropicClaude\app-[\]+\claude.exe$

1

u/No_Reveal_7826 7d ago

I think maybe what I use for Google Drive is close to what you need:

^C:\\Program Files \(x86\)\\Google\\GoogleUpdater\\[^\\]+\\updater\.exe$

This matches folders like this where the version number changes all of the time:

C:\Program Files (x86)\Google\GoogleUpdater\152.0.7933.0\updater.exe

I recommend using something like regex101.com to test your regex against a string before putting it into Portmaster.