# Set a custom path tag for non conforming albums

**URL:** <https://community.mp3tag.de/t/set-a-custom-path-tag-for-non-conforming-albums/14796>\
**Category:** Support\
**Created:** [June 11, 2013, 3:42am UTC](https://community.mp3tag.de/t/set-a-custom-path-tag-for-non-conforming-albums/14796 "2013-06-11T03:42:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ginjaninja](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/ed8c4c/32.png) [@ginjaninja](https://community.mp3tag.de/u/ginjaninja)\
**Post date:** [June 11, 2013, 3:42am UTC](https://community.mp3tag.de/t/set-a-custom-path-tag-for-non-conforming-albums/14796/1 "2013-06-11T03:42:48Z")

</div>

I was trying to populate a custom attribute with the subpath to an album, only for albums which dont conform to a standard defined as  
W:\Music\AlbumArtist(Year) Album[Disks]\Tracks ...  
(where 'the albumartist' is stored 'albumartist, the')

Some albums like compilations, soundtracks, musicals don't follow the standard. I want to capture non conforming albums and their locations in a custom attribute to help with onward management.

Non conforming albums look like  
W:\Music\CouldbeAnywhereanynumberofsubfolders(Might have Year) AlbumName\Mighthavedisksubfolders\files

such non conforming albums do not have albumartist in their path.

This format value action seems to work.  
$if($eql(%\_folderpath%,$regexp(%\_folderpath%,%albumartist%,)),$regexp(%\_folderpath%,W:\\Music(._)\\{1}._%album%.\*,$1),)

non conforming albums have a tag populated with a subpath.

However it is unable to deal with (ie ignore) the case with album artists with a 'the', as they are stored...'albumbumartist, the'

using a previous expression / action

$regexp(%albumartist%,^The (.+),'$1, The')

...ive tried  
$if($eql(%\_folderpath%,$regexp(%\_folderpath%,$regexp(%albumartist%,^The (.+),'$1, The'),)),$regexp(%\_folderpath%,W:\\Music(._)\\{1}._%album%.\*,$1),)

to no avail...any ideas please?

---

<div class="post-metadata">

**Author:** ![ginjaninja](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/ed8c4c/32.png) [@ginjaninja](https://community.mp3tag.de/u/ginjaninja)\
**Post date:** [June 11, 2013, 11:11am UTC](https://community.mp3tag.de/t/set-a-custom-path-tag-for-non-conforming-albums/14796/2 "2013-06-11T11:11:33Z")

</div>

$if($eql(%\_folderpath%,$regexp(%\_folderpath%,$if($grtr($strstr(%albumartist%,The ),0),$cutLeft(%albumartist%,4),%albumartist%),)),$regexp(%\_folderpath%,W:\\Music(._)\\{1}._%album%.\*,$1,1),)

seems to be a workaround...

but %album% wont match if it contains () in the album....is there a workaround?

---

<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:** [February 9, 2026, 12:24pm UTC](https://community.mp3tag.de/t/set-a-custom-path-tag-for-non-conforming-albums/14796/3 "2026-02-09T12:24:31Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


