I can't say it works on Windows but from my understanding this regex is correct and how I would write it (except maybe the ^
at the beginning)
From http://www.velocityreviews.com/forums/showpost.php?p=382944&postcount=3
^.+\.((jpg)|(gif)|(exe))$
When I run
find -regex '^.+\.((jpg)|(gif)|(exe))$'
my exe does not show up when i write
find -regex '^.+\.exe$'
It does. Why doesnt find -regex
want to use ()
or (()|())?
I always thought that was valid for everything.