I have filenames in a directory that have different beginning strings of characters that I wish to strip out and leave just the alpha characters + file extension:
[example]
1-09. But Not for Me.mp3
1-11. Summertime.mp3
1-12. My Funny Valentine.mp3
13. Indiana (Back Home Again in Indiana).mp3
2-02 I Love You.mp3
2-05 You'd Be So Nice To Come Home To.mp3
2-11. A Foggy Day.mp3
The only pattern I see is that the RegEx should strip out all the characters up to the FIRST alpha character.
[desired output]
But Not for Me.mp3
Summertime.mp3
My Funny Valentine.mp3
Indiana (Back Home Again in Indiana).mp3
I Love You.mp3
You'd Be So Nice To Come Home To.mp3
A Foggy Day.mp3
What would the Powershell look like to accomplish this?
I thought something along these lines but I don't know RegEx well enough to accomplish my goal.
foreach ($file in (get-childitem *.mp3).name) { Rename-Item $file ($file -replace '^[^-]*-\s*') }
thanks