# More on discnumbers

**URL:** https://community.mp3tag.de/t/more-on-discnumbers/7658
**Category:** Support
**Created:** [December 27, 2008, 2:34pm UTC](https://community.mp3tag.de/t/more-on-discnumbers/7658 "2008-12-27T14:34:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![timmorris](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/e9a140/32.png) [@timmorris](https://community.mp3tag.de/u/timmorris)
#### Post date: [December 27, 2008, 2:34pm UTC](https://community.mp3tag.de/t/more-on-discnumbers/7658/1 "2008-12-27T14:34:47Z")

</div>

For someone who read Computer Science at University I really should be able to cope with Regex, but it just does my head in!

For Multi-Disc Sets the Album field comes out of my ripper (EAC and MAREO) as ALBUM NAME CD%N%.

I'd like an action that will delete the trailing space and CD together with the number and then set the discnumber. I know this should be really easy, but every time I try it goes horribly wrong. I'm about to set up 2 friends PCs with EAC, MAREO, MP3TAG and Squeezecenter, and I want to give them a full set of actions to cover everything I currently do manually. I will of course be suggesting that they both buy Florian one of the books on his wish list. I'm currently using Album Art Downloader XUI together with a robocoy script so I only have to download the album art once for each album ripped, are there any better/easier?

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [December 30, 2008, 7:49am UTC](https://community.mp3tag.de/t/more-on-discnumbers/7658/2 "2008-12-30T07:49:22Z")

</div>

You don't need RegEx for that:

_Name of action group:_ **Disc Number**

_Action type:_ **Guess values**  
_Source format:_ **%album%**  
_Guessing pattern:_ **%album% CD%discnumber%**

---

<div class="post-metadata">

### Author: ![timmorris](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/e9a140/32.png) [@timmorris](https://community.mp3tag.de/u/timmorris)
#### Post date: [December 30, 2008, 2:20pm UTC](https://community.mp3tag.de/t/more-on-discnumbers/7658/3 "2008-12-30T14:20:05Z")

</div>

Thanks. I also want to delete the CDN at the end of the original Album field once I've set the discnumber. I presume that I need to chop off the end of the field up to and including the second space from the right hand end of the string - I think that will need Regex. Can I accomplish both in a single action?

I've decided that one of my tasks for 2009 should be to re-learn programming. I studied Algol68 at University which is a recursive algorithmic language - it took me a while to get my head round it but was incredibly powerful once I did.

Tim

I've looked at it again - and it should do what I need. I'll try it out - forgive me from being so stupid.

Tim

---

<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:21pm UTC](https://community.mp3tag.de/t/more-on-discnumbers/7658/4 "2026-02-09T12:21:16Z")

</div>


