- May
- 62
- 1
Within a directory which has files containing the year in their names, I want to change 2017 to 2018. I tried this:
but it wants to change, for example, aaa2017bbb.txt to aaa201x38bbb.txt.
The \xnn construct also does not seem to be recognized in a DIR command. For example, this works:
but this doesn't:
I'm using Perl regexes. What am I doing wrong?
Code:
ren /n "::^(.*201)7(.*)$" "::\1\x38\2"
The \xnn construct also does not seem to be recognized in a DIR command. For example, this works:
Code:
dir "::^.*2017.*$"
Code:
dir "::^.*201\x37.*$"
I'm using Perl regexes. What am I doing wrong?