stefankueng / grepWin

A powerful and fast search tool using regular expressions
https://tools.stefankueng.com/grepWin.html
GNU General Public License v3.0
1.76k stars 182 forks source link

Exclude dirs with wildcard #392

Closed wisemike2 closed 1 year ago

wisemike2 commented 1 year ago

The "Exclude dirs" works well for exact matches using (for example dir name is not): ^(not)$

But how to do the same to exclude any dir that has the word "not", like nottingham, or dehypnotization.

I tried using * around the word, but it didn't work.

stefankueng commented 1 year ago

you need to learn some regex, but that's not an issue of grepWin: https://regex101.com/

^.*(not).*$ should work.