# Regular Expressions Actions

**URL:** <https://community.mp3tag.de/t/regular-expressions-actions/53433>\
**Category:** Support\
**Created:** [June 4, 2021, 9:19am UTC](https://community.mp3tag.de/t/regular-expressions-actions/53433 "2021-06-04T09:19:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob1234](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/a3d4f5/32.png) [@Bob1234](https://community.mp3tag.de/u/Bob1234)\
**Post date:** [June 4, 2021, 9:19am UTC](https://community.mp3tag.de/t/regular-expressions-actions/53433/1 "2021-06-04T09:19:37Z")

</div>

My pet hate is when the Title field is used for all sorts of other random stuff. e.g. Title (Album Version) or Title (2011 Remaster) or other such mostly useless nonsense that the original artist never intended the track to be called.

I'm pretty sure when The Clash did London Calling, they never intended their track to be called London Calling (2011 Remaster) or London Calling (Album Version).

I want to either remove it, or ideally move it to the comment field where is actually belongs.

I started looking a Regex, as it should be pretty each to find the offending tracks (and album titles), but struggling, as I'm not a programmer. I did try one Regex from the current thread: **(.+?)** and all it did was wipe out the entire Title ☹ Perhaps I did something wrong? It also didn't seem to be coded to remove trailing whitespace.

The other part of this question is how would I move this stuff to the comment field? Is this something Actions can do?

Thanks.

---

<div class="post-metadata">

**Author:** ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)\
**Post date:** [June 4, 2021, 10:54am UTC](https://community.mp3tag.de/t/regular-expressions-actions/53433/2 "2021-06-04T10:54:51Z")

</div>

I would instead use the Guess Values action in this case.

Action: Guess Values  
Source: %title%  
Guessing Pattern: %title% (%comment%)

But this will overwrite any previous comment if one exists. Maybe filter for those that have a comment first and handle those separately. If only a few you can manually deal with them. Then filter for files without a comment and run the Guess Values action.

---

<div class="post-metadata">

**Author:** ![Bob1234](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/a3d4f5/32.png) [@Bob1234](https://community.mp3tag.de/u/Bob1234)\
**Post date:** [June 4, 2021, 11:08am UTC](https://community.mp3tag.de/t/regular-expressions-actions/53433/3 "2021-06-04T11:08:10Z")

</div>

So do this at the start before any other processing regex?

Tested it, and it appears to work well. I'm not interesting in keeping existing comments. I could use Subtitle field to store that info, which would keep comments intact, but it's a rarely used field.

---

<div class="post-metadata">

**Author:** ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)\
**Post date:** [June 4, 2021, 11:49am UTC](https://community.mp3tag.de/t/regular-expressions-actions/53433/4 "2021-06-04T11:49:07Z")

</div>

> [@Bob1234](#):
>
> So do this at the start before any other processing regex?

If you do it this way, what would be the need for the Regex function? The changes would already be done for you.

---

<div class="post-metadata">

**Author:** ![Bob1234](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/a3d4f5/32.png) [@Bob1234](https://community.mp3tag.de/u/Bob1234)\
**Post date:** [June 4, 2021, 11:59am UTC](https://community.mp3tag.de/t/regular-expressions-actions/53433/5 "2021-06-04T11:59:14Z")

</div>

Thanks, don't need the regex I couldn't get working. You solved 2 problems in 1 post!!!

---

<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:** [July 4, 2021, 11:59am UTC](https://community.mp3tag.de/t/regular-expressions-actions/53433/6 "2021-07-04T11:59:56Z")

</div>

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