# Replace Album name if it starts with three dots

**URL:** <https://community.mp3tag.de/t/replace-album-name-if-it-starts-with-three-dots/54656>\
**Category:** Support\
**Created:** [October 8, 2021, 12:15pm UTC](https://community.mp3tag.de/t/replace-album-name-if-it-starts-with-three-dots/54656 "2021-10-08T12:15:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthropos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/c68b51/32.png) [@Anthropos](https://community.mp3tag.de/u/Anthropos)\
**Post date:** [October 8, 2021, 12:15pm UTC](https://community.mp3tag.de/t/replace-album-name-if-it-starts-with-three-dots/54656/1 "2021-10-08T12:15:51Z")

</div>

Hi there,  
first of all: this app is so powerful, thanks for creating it!

Second: there's an issue when creating folders for the album or band name, if the album or band name starts with "..."

Android will not be able to play music from those folders, since "..." will make the folder invisible on Android.

My normal tag syntax is:  
%artist%\%album%$if(%discnumber%, CD$num(%discnumber%,1),) \%artist% - %title%

Question: what's the syntax for:  
IF %artist% starts with "..." or "... " then replace "..." or "... " with ""

(same with %album%)

Thanks guys!

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [October 8, 2021, 12:20pm UTC](https://community.mp3tag.de/t/replace-album-name-if-it-starts-with-three-dots/54656/2 "2021-10-08T12:20:23Z")

</div>

> [@Anthropos](#):
>
> %artist%%album%$if(%discnumber%, CD$num(%discnumber%,1),) %artist% - %title%

try  
`$replace('%artist%\%album%$if(%discnumber%, CD$num(%discnumber%,1),) \%artist% - %title%',...,)`

---

<div class="post-metadata">

**Author:** ![Anthropos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/c68b51/32.png) [@Anthropos](https://community.mp3tag.de/u/Anthropos)\
**Post date:** [October 8, 2021, 1:00pm UTC](https://community.mp3tag.de/t/replace-album-name-if-it-starts-with-three-dots/54656/3 "2021-10-08T13:00:22Z")

</div>

Thanks. But it doesn't work because of the single quotes ' '

This works:  
$replace(%artist%,...,)$replace(%album%,...,)$if(%discnumber%, CD$num(%discnumber%,1),) %artist% - %title%

But it will replace any "..." no matter where. I just want to replace "..." when it is at the beginning.

Any idea?

1. and one more question: how to rewrite: $if(%discnumber%, CD$num(%discnumber%,1),)

so that the discnumber will be added ONLY if the discnumber is 2 or greater? (\>1)

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [October 8, 2021, 1:42pm UTC](https://community.mp3tag.de/t/replace-album-name-if-it-starts-with-three-dots/54656/4 "2021-10-08T13:42:44Z")

</div>

> [@Anthropos](#):
>
> But it will replace any "..." no matter where. I just want to replace "..." when it is at the beginning.

This is the simple approach - the more complicated may work with regular expressions. I don't understand the need for that accuracy here. If you sometimes replace the 3 dots and sometimes you don't - why not always?

> [@Anthropos](#):
>
> how to rewrite: $if(%discnumber%, CD$num(%discnumber%,1),)

e.g. `$ifgreater(%discnumber%,1,CD%discnumber%,)`

---

<div class="post-metadata">

**Author:** ![Anthropos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/c68b51/32.png) [@Anthropos](https://community.mp3tag.de/u/Anthropos)\
**Post date:** [October 8, 2021, 2:32pm UTC](https://community.mp3tag.de/t/replace-album-name-if-it-starts-with-three-dots/54656/5 "2021-10-08T14:32:59Z")

</div>

Thank you, it works now:

$replace(%artist%,...,)\$replace(%album%,...,)$ifgreater(%discnumber%,1, (CD$num(%discnumber%,1)),)\%artist% - %title%

Is there a way to get the total number of discs as well?  
E.G. for a title of disc 1/4 there would be 4 total discs. But how to get the "4" ?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [October 8, 2021, 3:24pm UTC](https://community.mp3tag.de/t/replace-album-name-if-it-starts-with-three-dots/54656/6 "2021-10-08T15:24:27Z")

</div>

> [@Anthropos](#):
>
> title of disc 1/4 there would be 4 total discs

You could take the discnumber as it is including the slash and then replace the slash with "of" so that it becomes "1 of 4"

---

<div class="post-metadata">

**Author:** ![Anthropos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/c68b51/32.png) [@Anthropos](https://community.mp3tag.de/u/Anthropos)\
**Post date:** [October 8, 2021, 4:10pm UTC](https://community.mp3tag.de/t/replace-album-name-if-it-starts-with-three-dots/54656/7 "2021-10-08T16:10:12Z")

</div>

Thanks. The reason I'm looking for the number of total discs is the following:  
When buying CDs at the online shop with the big A, they have that AutoRip feature where you can download the whole album as mp3.

But id3tags of those mp3 files always state "1/1" as discnumber, if it's only 1 disc.

So I would like to ignore the discnumber if it's only one disc, but show the discnumber if the number of total discs is greater than 1.

> $ifgreater(%discnumber%,1, (CD$num(%discnumber%,1)),)

should become this:

> $ifgreater(%discTOTALnumber%,1, (CD$num(%discnumber%,1)),)

But how to do it?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [October 8, 2021, 4:47pm UTC](https://community.mp3tag.de/t/replace-album-name-if-it-starts-with-three-dots/54656/8 "2021-10-08T16:47:35Z")

</div>

> [@Anthropos](#):
>
> should become this:
> 
> > $ifgreater(%discTOTALnumber%,1, (CD$num(%discnumber%,1)),)
> 
> But how to do it?

Try:  
`$ifgreater($mid(%discnumber%,$add($strstr(%discnumber%,/),1),$len(%discnumber%)),1, (CD$num(%discnumber%,1)),)`

---

<div class="post-metadata">

**Author:** ![Anthropos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/c68b51/32.png) [@Anthropos](https://community.mp3tag.de/u/Anthropos)\
**Post date:** [October 9, 2021, 1:59pm UTC](https://community.mp3tag.de/t/replace-album-name-if-it-starts-with-three-dots/54656/9 "2021-10-09T13:59:02Z")

</div>

Thanks a lot, that works!

---

<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:29pm UTC](https://community.mp3tag.de/t/replace-album-name-if-it-starts-with-three-dots/54656/10 "2026-02-09T12:29:28Z")

</div>


