# Copy text after specific character from folder name to tag field

**URL:** <https://community.mp3tag.de/t/copy-text-after-specific-character-from-folder-name-to-tag-field/52013>\
**Category:** Support\
**Created:** [February 17, 2021, 6:33pm UTC](https://community.mp3tag.de/t/copy-text-after-specific-character-from-folder-name-to-tag-field/52013 "2021-02-17T18:33:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tag](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/f14d63/32.png) [@tag](https://community.mp3tag.de/u/tag)\
**Post date:** [February 17, 2021, 6:33pm UTC](https://community.mp3tag.de/t/copy-text-after-specific-character-from-folder-name-to-tag-field/52013/1 "2021-02-17T18:33:29Z")

</div>

I would like to copy the text from the folder names after the (last) specific character "·" to the tag field 'Genre'

For example,  
if a folder name is:  
"Chill · Chill Jazz" then copy "Chill Jazz" to the Genre tag field of the tracks included in the folder

if a folder name is:  
"Chill · Lounge · House Lounge" then copy "House Lounge" to the Genre tag field of the tracks included in the folder

The special character is "·"

---

<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:** [February 17, 2021, 7:18pm UTC](https://community.mp3tag.de/t/copy-text-after-specific-character-from-folder-name-to-tag-field/52013/2 "2021-02-17T19:18:28Z")

</div>

> [@tag](#):
>
> Chill · Chill Jazz

Try Convert\>Filename - Tag  
Mask: `%dummy% · %genre%\%dummy%`

---

<div class="post-metadata">

**Author:** ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)\
**Post date:** [February 18, 2021, 12:42am UTC](https://community.mp3tag.de/t/copy-text-after-specific-character-from-folder-name-to-tag-field/52013/3 "2021-02-18T00:42:30Z")

</div>

> [@tag](#):
>
> I would like to copy the text from the folder names after the (last) specific character "·" to the tag field 'Genre'

I suggest a "Format" action for the genre field.  
Format string: `$trim($regexp(%_directory%,(.+)·(.+),$2))`

---

<div class="post-metadata">

**Author:** ![tag](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/f14d63/32.png) [@tag](https://community.mp3tag.de/u/tag)\
**Post date:** [February 18, 2021, 7:22pm UTC](https://community.mp3tag.de/t/copy-text-after-specific-character-from-folder-name-to-tag-field/52013/4 "2021-02-18T19:22:17Z")

</div>

Thank you both for the replies and the solutions. Problem solved!

---

<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:** [January 25, 2023, 9:47pm UTC](https://community.mp3tag.de/t/copy-text-after-specific-character-from-folder-name-to-tag-field/52013/6 "2023-01-25T21:47:27Z")

</div>

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