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

Post any Bulk Rename Utility support requirements here. Open to all registered users.

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

Postby nickrobinson » Sun Nov 24, 2019 1:26 pm

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 ;)
nickrobinson
 
Posts: 5
Joined: Wed Oct 16, 2013 2:53 pm

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

Postby therube » Sun Nov 24, 2019 4:28 pm

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
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

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

Postby nickrobinson » Sun Nov 24, 2019 10:47 pm

will try, thanks - I've not ventured into regexes yet ;(
nickrobinson
 
Posts: 5
Joined: Wed Oct 16, 2013 2:53 pm

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

Postby nickrobinson » Mon Nov 25, 2019 1:07 pm

perfect, many thasnks!
nickrobinson
 
Posts: 5
Joined: Wed Oct 16, 2013 2:53 pm


Return to BRU Support