# Format tag based on last two words in another tag

**URL:** <https://community.mp3tag.de/t/format-tag-based-on-last-two-words-in-another-tag/51691>\
**Category:** Mac\
**Created:** [January 23, 2021, 3:11am UTC](https://community.mp3tag.de/t/format-tag-based-on-last-two-words-in-another-tag/51691 "2021-01-23T03:11:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![djdizzle](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/ed8c4c/32.png) [@djdizzle](https://community.mp3tag.de/u/djdizzle)\
**Post date:** [January 23, 2021, 3:11am UTC](https://community.mp3tag.de/t/format-tag-based-on-last-two-words-in-another-tag/51691/1 "2021-01-23T03:11:33Z")

</div>

Hi,

I would like to know if/how I can format the style tag based on the last two words of the title tag which are always uppercase, eg. Current Title: `Any Other Way STEMS BASS`  
Proposed Title: `Any Other Way`  
Proposed Style: `STEMS BASS`

_nb. the first word is always STEMS_

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [January 23, 2021, 7:08am UTC](https://community.mp3tag.de/t/format-tag-based-on-last-two-words-in-another-tag/51691/2 "2021-01-23T07:08:54Z")

</div>

You can use two actions:

> **Import tag fields**  
> Source format: `%title%`  
> Formatstring: `%title% STEMS %style%`

which will split the existing title into title and style using _STEMS_ as separator and

> **Format tag field**  
> Field: `STYLE`  
> Formatstring: `[STEMS %style%]`

which prefixes an existing style field by "_STEMS_ "

---

<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 22, 2021, 7:09am UTC](https://community.mp3tag.de/t/format-tag-based-on-last-two-words-in-another-tag/51691/3 "2021-02-22T07:09:13Z")

</div>

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