- Aug
- 258
- 4
Hello,
I'm not familiar with regular expressions.
I want fo find all directories which contain the years 2000-2012 in its name and have
a " ", "-" or "_" before the date-string, e.g. " 2009", "-2011" or "_2008".
So far I tried
dir /s /a:d *20[0-1][0-9]*
which is working well.
But I have no idea how to exclude the above mentioned three leading characters.
Any help would be appreciated.
I'm not familiar with regular expressions.
I want fo find all directories which contain the years 2000-2012 in its name and have
a " ", "-" or "_" before the date-string, e.g. " 2009", "-2011" or "_2008".
So far I tried
dir /s /a:d *20[0-1][0-9]*
which is working well.
But I have no idea how to exclude the above mentioned three leading characters.
Any help would be appreciated.