# Help with the renaming template

**URL:** <https://community.mp3tag.de/t/help-with-the-renaming-template/52965>\
**Category:** Support\
**Created:** [April 25, 2021, 10:34am UTC](https://community.mp3tag.de/t/help-with-the-renaming-template/52965 "2021-04-25T10:34:28Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [April 26, 2021, 9:29am UTC](https://community.mp3tag.de/t/help-with-the-renaming-template/52965/8 "2021-04-26T09:29:13Z")

</div>

> [@Mrakobes666](#):
>
> and then renaming the groups with different scripts

Yes (I think).  
First filter for files that have CD in the filename  
`%_path% MATCHES CD\d+`  
and import the data with a mask like  
`%artist%\%year% - %album%\CD%discnumber% - %discsubtitle%\%dummy%`

then filter for files that do not have CD in the filename  
`NOT %_path% MATCHES CD\d+`  
and import the data with a mask like  
`%artist%\%year% - %album%\%discsubtitle%\%dummy%`

You cannot have 1 mask for 2 different patterns.

---

_[View the full topic](https://community.mp3tag.de/t/help-with-the-renaming-template/52965)._
