# Renaming folders to Album when there is definite and indefinite articles

**URL:** <https://community.mp3tag.de/t/renaming-folders-to-album-when-there-is-definite-and-indefinite-articles/52323>\
**Category:** Support\
**Created:** [March 11, 2021, 2:18pm UTC](https://community.mp3tag.de/t/renaming-folders-to-album-when-there-is-definite-and-indefinite-articles/52323 "2021-03-11T14:18:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ehead](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/5e9695/32.png) [@ehead](https://community.mp3tag.de/u/ehead)\
**Post date:** [March 11, 2021, 2:18pm UTC](https://community.mp3tag.de/t/renaming-folders-to-album-when-there-is-definite-and-indefinite-articles/52323/1 "2021-03-11T14:18:24Z")

</div>

I'm renaming audiobook folders and want to shift "The", "An", and "A" to after the rest of the title (Album tag). So, e.g.:

"The Evolution of Desire - David Buss" would get renamed to:  
"Evolution of Desire, The - David Buss"

I'm almost there! This is what I'm doing:

1. Drag folder into Mp3tag
2. press alt-5 to bring up to rename menu (tag-tag)
3. Then type in \_DIRECTORY (use the underscore and then all CAPS).
4. Use something like this for the expression:  
$regexp(%album%,^(The|An|A)\s(.+)$,$2',' $1) - %artist%

For some reason this expression results in an extra space at the beginning. I get:  
" Evolution of Desire, The - David Buss".

This one has been driving me crazy.

---

<div class="post-metadata">

**Author:** ![ehead](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/5e9695/32.png) [@ehead](https://community.mp3tag.de/u/ehead)\
**Post date:** [March 11, 2021, 3:10pm UTC](https://community.mp3tag.de/t/renaming-folders-to-album-when-there-is-definite-and-indefinite-articles/52323/2 "2021-03-11T15:10:16Z")

</div>

I had a space before the $regexp that I just now noticed! Mystery solved.

---

<div class="post-metadata">

**Author:** ![Crissov](https://community.mp3tag.de/user_avatar/community.mp3tag.de/crissov/32/6619_2.png) [@Crissov](https://community.mp3tag.de/u/Crissov)\
**Post date:** [March 11, 2021, 5:29pm UTC](https://community.mp3tag.de/t/renaming-folders-to-album-when-there-is-definite-and-indefinite-articles/52323/3 "2021-03-11T17:29:20Z")

</div>

I‘d recommend the intermediate step of storing and reviewing the string in `%albumsort%`.

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [April 10, 2021, 5:29pm UTC](https://community.mp3tag.de/t/renaming-folders-to-album-when-there-is-definite-and-indefinite-articles/52323/4 "2021-04-10T17:29:25Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
