# Append Comment to Title

**URL:** https://community.mp3tag.de/t/append-comment-to-title/2605
**Category:** Support
**Created:** [December 9, 2005, 12:09am UTC](https://community.mp3tag.de/t/append-comment-to-title/2605 "2005-12-09T00:09:38Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![alokeprasad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@alokeprasad](https://community.mp3tag.de/u/alokeprasad)
#### Post date: [December 9, 2005, 12:09am UTC](https://community.mp3tag.de/t/append-comment-to-title/2605/1 "2005-12-09T00:09:38Z")

</div>

Because my Treo 650's MP3 player (pTunes) does not display the Comment field, I need to append the Title of some of my MP3's (in a set of directories) so that the new Title field contains

Comment - Title

How do I do this?

Thanks.  
Aloke

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [December 9, 2005, 4:50am UTC](https://community.mp3tag.de/t/append-comment-to-title/2605/2 "2005-12-09T04:50:58Z")

</div>

Please read the [FAQs](https://community.mp3tag.de/t/967/1). 🙂

**%comment% - %title%** is the formatstring then.

---

<div class="post-metadata">

### Author: ![alokeprasad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@alokeprasad](https://community.mp3tag.de/u/alokeprasad)
#### Post date: [December 9, 2005, 2:47pm UTC](https://community.mp3tag.de/t/append-comment-to-title/2605/3 "2005-12-09T14:47:11Z")

</div>

> [@](#):
>
> Please read the [FAQs](https://community.mp3tag.de/t/967/1). 🙂
> 
> **%comment% - %title%** is the formatstring then.
> 
> \<{POST\_SNAPBACK}\>

Thank you.

It wasn't clear to me if the action was to be a "Format Value" or "Replace" or "Replace with Regular Expression".

Using Format Value seems to have worked.

Aloke  
PS: What an awesome, powerful program this is!!

---

<div class="post-metadata">

### Author: ![alokeprasad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@alokeprasad](https://community.mp3tag.de/u/alokeprasad)
#### Post date: [December 9, 2005, 9:06pm UTC](https://community.mp3tag.de/t/append-comment-to-title/2605/4 "2005-12-09T21:06:18Z")

</div>

I have a follow-up question:

How do I reverse this action?

Say, sometime in the future, I want to get back to the original content of the Title field. How do I do that when the current content of the Title field is actually

%comment% - %title%

How do I remove the "%comment% - " part of the Title field content?

Thanks.  
Aloke

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [December 10, 2005, 7:46am UTC](https://community.mp3tag.de/t/append-comment-to-title/2605/5 "2005-12-10T07:46:33Z")

</div>

Create the following action:

Action #1:  
_Action type:_ **Replace with regular expressions**  
_Field:_ **TITLE**  
_Regular expression:_ **^.\* -**  
_Replace matches with:_

[] case-sensitive comparison

Edit: In the regular expression, there is also a blank after the dash: " **^.\* -**" (without quotation marks).

---

<div class="post-metadata">

### Author: ![alokeprasad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@alokeprasad](https://community.mp3tag.de/u/alokeprasad)
#### Post date: [December 10, 2005, 9:36am UTC](https://community.mp3tag.de/t/append-comment-to-title/2605/6 "2005-12-10T09:36:07Z")

</div>

Thank you.

Aloke

---

<div class="post-metadata">

### Author: ![alokeprasad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@alokeprasad](https://community.mp3tag.de/u/alokeprasad)
#### Post date: [December 26, 2005, 1:23am UTC](https://community.mp3tag.de/t/append-comment-to-title/2605/7 "2005-12-26T01:23:29Z")

</div>

> [@](#):
>
> Create the following action:
> 
> Action #1:  
> _Action type:_ **Replace with regular expressions**  
> _Field:_ **TITLE**  
> _Regular expression:_ **^.\* -**  
> _Replace matches with:_
> 
> [] case-sensitive comparison
> 
> Edit: In the regular expression, there is also a blank after the dash: " **^.\* -**" (without quotation marks).
> 
> \<{POST\_SNAPBACK}\>

Hi,

How do I delete the string before the first (going from left to right) appearance of " - " only?

Sometimes my Title has a " - " (no "'s in the title) in it from before. Adding the Comment field to it results in multiple instances of " - " in the Title. The above expression removes everything before the last " - ", not the first " - ".

Thanks.  
Aloke

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [December 26, 2005, 7:40am UTC](https://community.mp3tag.de/t/append-comment-to-title/2605/8 "2005-12-26T07:40:54Z")

</div>

Does this work:

Action #1:  
_Action type:_ **Replace with regular expressions**  
_Field:_ **TITLE**  
_Regular expression:_ **^(._) - (._)**  
_Replace matches with:_ **$2**

[] case-sensitive comparison

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [December 26, 2005, 9:57am UTC](https://community.mp3tag.de/t/append-comment-to-title/2605/9 "2005-12-26T09:57:49Z")

</div>

Instead of "^.\* - " use "^.\*? - "

---

<div class="post-metadata">

### Author: ![alokeprasad](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@alokeprasad](https://community.mp3tag.de/u/alokeprasad)
#### Post date: [December 26, 2005, 2:32pm UTC](https://community.mp3tag.de/t/append-comment-to-title/2605/10 "2005-12-26T14:32:09Z")

</div>

> [@](#):
>
> Instead of "^.\* - " use "^.\*? - "
> 
> \<{POST\_SNAPBACK}\>

Sebastian: the "^(._) - (._)" -\> "$2" did not work.

Dano: "^.\*? - " -\> "" worked !!

Thanks to all for the help.

Aloke

---

<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:19pm UTC](https://community.mp3tag.de/t/append-comment-to-title/2605/11 "2026-02-09T12:19:33Z")

</div>


