# Filename to tag Help (Exclude Characters)

**URL:** <https://community.mp3tag.de/t/filename-to-tag-help-exclude-characters/42703>\
**Category:** Support\
**Created:** [August 20, 2018, 1:17pm UTC](https://community.mp3tag.de/t/filename-to-tag-help-exclude-characters/42703 "2018-08-20T13:17:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpirosG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/spirosg/32/8589_2.png) [@SpirosG](https://community.mp3tag.de/u/SpirosG)\
**Post date:** [August 20, 2018, 1:17pm UTC](https://community.mp3tag.de/t/filename-to-tag-help-exclude-characters/42703/1 "2018-08-20T13:17:30Z")

</div>

I want to transfer the filename to artist and title tag but i want to exclude the last characters (Key) & (Bpm) from the title.

Calvin Harris ft Sam Smith - Promises (CK intro) (Clean) **2A 123**.mp3

Calvin Harris ft Sam Smith - Promises (Clean) **2A 123**

What String should i use?

---

<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, 2018, 5:20pm UTC](https://community.mp3tag.de/t/filename-to-tag-help-exclude-characters/42703/2 "2018-08-20T17:20:28Z")

</div>

Several routes lead to Rome.  
You could either simply import the whole string into title and then process the TITLE field  
or  
you use an action of the type "Guess value" instead of the convert function  
Guess value  
Source: `$regexp('Calvin Harris ft Sam Smith - Promises (CK intro) (Clean) 2A 123',\d. \d+$,)`  
Pattern: %artist% - %title%

resp.  
Source: `$regexp(%_filename%,\d. \d+$,)`  
Pattern: %artist% - %title%

---

<div class="post-metadata">

**Author:** ![SpirosG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/spirosg/32/8589_2.png) [@SpirosG](https://community.mp3tag.de/u/SpirosG)\
**Post date:** [August 23, 2018, 12:05pm UTC](https://community.mp3tag.de/t/filename-to-tag-help-exclude-characters/42703/3 "2018-08-23T12:05:45Z")

</div>

This is working except when there is the number 1 in front of the key, for example if the filename is this:

**Bryce Vine - Drew Barrymore (Dennis Blaze Club Rework) (Intro) (Dirty) 10A 80**

the result in the title is:

**Drew Barrymore (Dennis Blaze Club Rework) (Intro) (Dirty) 1**

also it would be nice to know how could i do the same thing if i was proccessing the title only.

Thanks for the help!

---

<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 23, 2018, 4:43pm UTC](https://community.mp3tag.de/t/filename-to-tag-help-exclude-characters/42703/4 "2018-08-23T16:43:09Z")

</div>

> [@SpirosG](#):
>
> This is working except when there is the number 1 in front of the key, for example if the filename is this:
> 
> **Bryce Vine - Drew Barrymore (Dennis Blaze Club Rework) (Intro) (Dirty) 10A 80**

You could use instead of

> [@ohrenkino](#):
>
> Source: `$regexp(%_filename%,\d. \d+$,)`  
> Pattern: %artist% - %title%

Source: `$regexp(%_filename%,\d+. \d+$,)`  
Pattern: %artist% - %title%

> [@SpirosG](#):
>
> also it would be nice to know how could i do the same thing if i was proccessing the title only.

Instead of an action of the type "Guess value" use an action of the type "Format value" for TITLE  
Format string: `$regexp(%title%,\d+. \d+$,)`

---

<div class="post-metadata">

**Author:** ![SpirosG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/spirosg/32/8589_2.png) [@SpirosG](https://community.mp3tag.de/u/SpirosG)\
**Post date:** [August 23, 2018, 7:26pm UTC](https://community.mp3tag.de/t/filename-to-tag-help-exclude-characters/42703/5 "2018-08-23T19:26:04Z")

</div>

> [@ohrenkino](#):
>
> $regexp(%\_filename%,\d+. \d+$,)

This one is working correctly!

Thanks for the support and the help!

---

<div class="post-metadata">

**Author:** ![SpirosG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/spirosg/32/8589_2.png) [@SpirosG](https://community.mp3tag.de/u/SpirosG)\
**Post date:** [October 19, 2020, 2:42pm UTC](https://community.mp3tag.de/t/filename-to-tag-help-exclude-characters/42703/6 "2020-10-19T14:42:50Z")

</div>

Hi @ohrenkino

What should i do if i want to move the Bryce Vine - Drew Barrymore (Dennis Blaze Club Rework) (Intro) (Dirty) **10A 80** to the %grouping%

---

<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:** [October 19, 2020, 2:49pm UTC](https://community.mp3tag.de/t/filename-to-tag-help-exclude-characters/42703/7 "2020-10-19T14:49:41Z")

</div>

Is this the filename again?  
What about the function Convert\>Filename-Tag with  
`%dummy%) %dummy%) %dummy%) %grouping%`

---

<div class="post-metadata">

**Author:** ![SpirosG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/spirosg/32/8589_2.png) [@SpirosG](https://community.mp3tag.de/u/SpirosG)\
**Post date:** [October 19, 2020, 3:03pm UTC](https://community.mp3tag.de/t/filename-to-tag-help-exclude-characters/42703/8 "2020-10-19T15:03:17Z")

</div>

Yes we are talking about the filename.

The action above works only if the flename contains 3 parentheses but there are filenames without a parenthesis, one, two or more.

For example:  
Fatman Scoop, Lil Jon, Jay-Z, DJ Unk, Yung Joc, Ying Yang Twins - Deville Loves The 2000's (Party Break Vol. 1) (Acapella Intro) (Beat Out) (Dirty) **4B 89**

---

<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:** [October 19, 2020, 3:11pm UTC](https://community.mp3tag.de/t/filename-to-tag-help-exclude-characters/42703/9 "2020-10-19T15:11:55Z")

</div>

Then perhaps this helps in "Guess value":  
Source: `$regexp(%_filename%,'.* (\d+[A-Z].*)',$1)`  
Target: %grouping%

---

<div class="post-metadata">

**Author:** ![SpirosG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/spirosg/32/8589_2.png) [@SpirosG](https://community.mp3tag.de/u/SpirosG)\
**Post date:** [October 19, 2020, 3:15pm UTC](https://community.mp3tag.de/t/filename-to-tag-help-exclude-characters/42703/10 "2020-10-19T15:15:35Z")

</div>

You are awesome!  
This seems to be working perfectly!

Thank you!!! 👏 👏 👏

---

<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:** [November 18, 2020, 3:15pm UTC](https://community.mp3tag.de/t/filename-to-tag-help-exclude-characters/42703/11 "2020-11-18T15:15:38Z")

</div>

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