# Rename based on certain tag fields incl. regexp

**URL:** https://community.mp3tag.de/t/rename-based-on-certain-tag-fields-incl-regexp/46001
**Category:** Support
**Created:** [July 25, 2019, 8:07am UTC](https://community.mp3tag.de/t/rename-based-on-certain-tag-fields-incl-regexp/46001 "2019-07-25T08:07:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![djliakos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/8e8cbc/32.png) [@djliakos](https://community.mp3tag.de/u/djliakos)
#### Post date: [July 25, 2019, 8:07am UTC](https://community.mp3tag.de/t/rename-based-on-certain-tag-fields-incl-regexp/46001/1 "2019-07-25T08:07:17Z")

</div>

Guys if i have Artist, Title and Remixed By fields, example Artist =Antonis Rigas Title=Fige (Remix) Remixed By= Petros Karras how can i get a filename Antonis Rigas - Fige (Petros Karras Remix)?

---

<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: [July 25, 2019, 8:53am UTC](https://community.mp3tag.de/t/rename-based-on-certain-tag-fields-incl-regexp/46001/2 "2019-07-25T08:53:13Z")

</div>

you could try an action of the type "Format value" for TITLE  
Format string: `$regexp(%title%,'(.*)\((.*)','$1('%mixartist% '$2')`

---

<div class="post-metadata">

### Author: ![djliakos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/8e8cbc/32.png) [@djliakos](https://community.mp3tag.de/u/djliakos)
#### Post date: [July 25, 2019, 9:32am UTC](https://community.mp3tag.de/t/rename-based-on-certain-tag-fields-incl-regexp/46001/3 "2019-07-25T09:32:03Z")

</div>

> [@Regular Expressions](https://community.mp3tag.de/t/regular-expressions/521/68):
>
> $regexp(%title%,'(._)((._)','$1('%mixartist% '$2')

Thank you so much, it's working. Where can I find more information about regular expression? Syntax etc? Can i save this function?

---

<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: [July 25, 2019, 9:43am UTC](https://community.mp3tag.de/t/rename-based-on-certain-tag-fields-incl-regexp/46001/4 "2019-07-25T09:43:07Z")

</div>

> [@Regular Expressions](https://community.mp3tag.de/t/regular-expressions/521/69):
>
> Where can I find more information about regular expression

The help?

> **[Replace with Regular Expression – Mp3tag Documentation](https://docs.mp3tag.de/actions/replace-regexp/)**
>
> Documentation on the Replace with Regular Expression action type that can be performed as Quick Action or as reusable workflow from Action Groups. Mp3tag is the universal Tag Editor.

To create actions see the FAQs:

> [@Actions and batch-operations](https://community.mp3tag.de/t/actions-and-batch-operations/967/2):
>
> How to create a new action? First, create a new action group via Actions \> [Actions] Actions or Alt + 6. Then, click on the button [New] New and give your action group an expressive name, e.g., "All tag fields Upper Case". This action group can be applied to the selected files after you have added one or more actions to it. Now, you can create a new action in your action group via the button [New] New and choose the desired action type from the list. At the moment the following action types …

---

<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:28pm UTC](https://community.mp3tag.de/t/rename-based-on-certain-tag-fields-incl-regexp/46001/5 "2026-02-09T12:28:11Z")

</div>


