Reputation: 1134
I'm trying to match a glob that's all .exe
's in a nested folder, but skip over UnityCrashHandler32.exe
/UnityCrashHandler64.exe
explicitly.
I've been playing around with some combination of !(UnityCrashHandler32\.exe|UnityCrashHandler64\.exe)
but it's not lining up correctly! Can't quite see what I'm missing
Thanks so much, Ollie
Current Glob:
foo/{*/*,*}.exe
What I'd like it to do:
❌ foo/test.png
✅ foo/thing.exe
✅ foo/thing/thing.exe
❌ foo/UnityCrashHandler64.exe
❌ foo/UnityCrashHandler32.exe
❌ foo/thing/UnityCrashHandler64.exe
❌ foo/thing/UnityCrashHandler32.exe
Upvotes: 1
Views: 656
Reputation: 7781
Like this maybe?
foo/**/@(!(UnityCrashHandler[0-9][0-9])).exe
Or
foo/**/!(UnityCrashHandler[0-9][0-9]).exe
With more pattern/glob to match, put the .exe
inside the last )
foo/**/@(!(UnityCrashHandler[0-9][0-9]).exe)
Add a pipe |
after the .exe
and add your next pattern/glob.
See
Upvotes: 1