# Disc Number

**URL:** https://community.mp3tag.de/t/disc-number/17178
**Category:** General Discussion
**Created:** [August 27, 2015, 10:01pm UTC](https://community.mp3tag.de/t/disc-number/17178 "2015-08-27T22:01:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![leandrong](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/278dde/32.png) [@leandrong](https://community.mp3tag.de/u/leandrong)
#### Post date: [August 27, 2015, 10:01pm UTC](https://community.mp3tag.de/t/disc-number/17178/1 "2015-08-27T22:01:52Z")

</div>

Hello, I need to If I can create a regular expression that changes album's cd numbers.

Por example:

I have "Led Zeppelin - Greatest Hits (cd1) - 02 - Immigrant Song.mp3" and want to change it to

"Led Zeppelin - Greatest Hits (CD1) - 02 - Immigrant Song.mp3"

I can create a replace "cd1" with "CD1", "cd2" with "CD2", and so on but I wanna know if there is any regular expression that solves my problem.

Thanks in advance!

Leito.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [August 28, 2015, 3:55am UTC](https://community.mp3tag.de/t/disc-number/17178/2 "2015-08-28T03:55:33Z")

</div>

> [@Leito](#):
>
> Hello, I need to If I can create a regular expression that changes album's cd numbers. ...  
> I have "Led Zeppelin - Greatest Hits (cd1) - 02 - Immigrant Song.mp3" and want to change it to  
> "Led Zeppelin - Greatest Hits (CD1) - 02 - Immigrant Song.mp3" ...

**Action "Format value" Tag-Field : \_FILENAME Formatstring: $regexp(%\_filename%,'(\s|-|\[|\(|,)\*(cd|disc|disk)(\s|\W)\*(\d+)(\s|\W)\*',' (CD$4) - ',1) From: Led Zeppelin - Greatest Hits (cd1) - 02 - Immigrant Song.mp3 To : Led Zeppelin - Greatest Hits (CD1) - 02 - Immigrant Song.mp3**

DD.20150828.0805.CEST
