Page 1 of 1

Remove "The" but only at the start of a file name

PostPosted: Sun Nov 24, 2019 1:26 pm
by nickrobinson
I'm wanting to rename all my music folders so "The Who" becomes "Who", but I only want this at the start of the filename, not within it.

Clues appreciated, this i an amazing program and I use it every week ;)

Re: Remove "The only at the start of a file name

PostPosted: Sun Nov 24, 2019 4:28 pm
by therube
1:RegEx:
Code: Select all
Match:  ^([Tt]he\s)(.*)
Replace:  \2


If name starts with the<sp>, remove it.

Code: Select all
therube.mp3 ->
therube.mp3

the rube.mp3 ->
rube.mp3

Re: Remove "The only at the start of a file name

PostPosted: Sun Nov 24, 2019 10:47 pm
by nickrobinson
will try, thanks - I've not ventured into regexes yet ;(

Re: Remove "The only at the start of a file name

PostPosted: Mon Nov 25, 2019 1:07 pm
by nickrobinson
perfect, many thasnks!