# String for filenames 2 tag

**URL:** <https://community.mp3tag.de/t/string-for-filenames-2-tag/49969>\
**Category:** Support\
**Created:** [August 20, 2020, 5:21pm UTC](https://community.mp3tag.de/t/string-for-filenames-2-tag/49969 "2020-08-20T17:21:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebi303](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@sebi303](https://community.mp3tag.de/u/sebi303)\
**Post date:** [August 20, 2020, 5:21pm UTC](https://community.mp3tag.de/t/string-for-filenames-2-tag/49969/1 "2020-08-20T17:21:41Z")

</div>

Hi guys,

I've got a big collection of music that isn't tagged, just has correct filenames.

They either look like this  
Artist - Title (YYYY)  
or  
Artist - Title (Remix) (YYYY)

So for the first kind of files my string for tagging would be:  
%artist% - %title% (%year%)

For the 2nd ones I don't know how to do it properly. Anyone knows this?

Kind regards

---

<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:** [August 20, 2020, 5:51pm UTC](https://community.mp3tag.de/t/string-for-filenames-2-tag/49969/2 "2020-08-20T17:51:46Z")

</div>

Yes, this is a little tricky and will probably not work in 1 go.  
I think the easiest way would be  
Use  
%artist% - %title%) (%year%)  
to import the data - you will lose the `)` behind the "Remix".  
So the second step would be:  
Convert\>Tag-Tag for TITLE  
Format string: %title%)

Or you use an action of the type "Guess value"  
Source String: `$regexp(%_filename%,(.*) - (.*) \((.*)\),$1==$2==$3)`  
Target pattern: `%artist%==%title%==%year%`

---

<div class="post-metadata">

**Author:** ![sebi303](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/977dab/32.png) [@sebi303](https://community.mp3tag.de/u/sebi303)\
**Post date:** [August 20, 2020, 6:30pm UTC](https://community.mp3tag.de/t/string-for-filenames-2-tag/49969/3 "2020-08-20T18:30:54Z")

</div>

Wo, thanks a lot, really appreciate your help! 🙂

---

<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:** [September 19, 2020, 6:30pm UTC](https://community.mp3tag.de/t/string-for-filenames-2-tag/49969/4 "2020-09-19T18:30:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
