# Help with Guess Values and Trim part of Title

**URL:** <https://community.mp3tag.de/t/help-with-guess-values-and-trim-part-of-title/56582>\
**Category:** Support\
**Created:** [March 4, 2022, 2:22am UTC](https://community.mp3tag.de/t/help-with-guess-values-and-trim-part-of-title/56582 "2022-03-04T02:22:12Z")\
**Posts on this page:** 5\
**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:** [March 4, 2022, 2:22am UTC](https://community.mp3tag.de/t/help-with-guess-values-and-trim-part-of-title/56582/1 "2022-03-04T02:22:12Z")

</div>

Hello,

I am using the following Guess Values action:

Source format: `%_path%`  
Guessing pattern: `%dummy%\%dummy%\%dummy%\%dummy%\%contentgroup%\%dummy%_%title% - %artist%\%dummy%_%subtitle%_%dummy%`

And would like to know if it is possible to trim part of the `%subtitle%` tag to keep only the part in CAPS.  
eg: trim `Mist Of Lies STEMS MELODY` to `STEMS MELODY`

---

<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:** [March 4, 2022, 6:40am UTC](https://community.mp3tag.de/t/help-with-guess-values-and-trim-part-of-title/56582/2 "2022-03-04T06:40:01Z")

</div>

You would have to prepare the source pattern so that it is clear which part of the data should end up in the matching format string.  
But I would run a second action that does the trimming.  
`$regexp('Mist Of Lies STEMS MELODY ','(.*?) (\u\u+ )',$2)` leads to STEMS MELODY

---

<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:** [March 5, 2022, 3:49am UTC](https://community.mp3tag.de/t/help-with-guess-values-and-trim-part-of-title/56582/3 "2022-03-05T03:49:48Z")

</div>

`%dummy%_%subtitle%_%dummy%`

is the filename part of the pattern  
an example filename is `ES_Mist Of Lies STEMS MELODY_PN.ext`

I was actually wanting to automatically trim the part in caps to place in the `%subtitle%`, or if not possible... add the entire string between the underscores of the filename to `%subtitle%` and trim inside the tag.

I did not want to have to specify the filename in the action, as I am using an action group and there are over 1000 files I am trying to bulk process.

---

<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:** [March 5, 2022, 7:06am UTC](https://community.mp3tag.de/t/help-with-guess-values-and-trim-part-of-title/56582/4 "2022-03-05T07:06:39Z")

</div>

> [@djdizzle](#):
>
> as I am using an action group

And? did you add my suggestion to your action group and dd it work?  
If you treat SUBTITLE then

> [@ohrenkino](#):
>
> `$regexp('Mist Of Lies STEMS MELODY ','(.*?) (\u\u+ )',$2)`

would become  
`$regexp(%subtitle%,'(.*?) (\u\u+ )',$2)`

---

<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:29pm UTC](https://community.mp3tag.de/t/help-with-guess-values-and-trim-part-of-title/56582/5 "2026-02-09T12:29:41Z")

</div>


