Searched, and found a few examples, but don't comprehend enough, so I'm asking for the solution.
I have many, many files with file names constructed like this:
random 7 or fewer digit number - filename.pdf
So, they all have <space> dashes in the same location.
Examples:
323 -this is file1.pdf
489834 - this is file two.pdf
9273 - this is file 3.pdf
2837261 -this is another file.pdf
I want to pad them all so that they end up:
0000323 -this is file1.pdf
0489834 - this is file two.pdf
0009273 - this is file3.pdf
2837261 -this is another file.pdf
Can someone tell me the regex to do this?