# how to put a dash before the last word in a title?

**URL:** https://community.mp3tag.de/t/how-to-put-a-dash-before-the-last-word-in-a-title/13278
**Category:** Support
**Created:** [April 1, 2012, 11:38pm UTC](https://community.mp3tag.de/t/how-to-put-a-dash-before-the-last-word-in-a-title/13278 "2012-04-01T23:38:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![evergreen1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/a9adbd/32.png) [@evergreen1](https://community.mp3tag.de/u/evergreen1)
#### Post date: [April 1, 2012, 11:38pm UTC](https://community.mp3tag.de/t/how-to-put-a-dash-before-the-last-word-in-a-title/13278/1 "2012-04-01T23:38:44Z")

</div>

i have a title as this

**27 hello dear inh253686.mp3**

i want to put a dash before the last word starting with the letter i

how can i do that?

please refer to post number 51568. it gave me a direction like this.  
$regexp(%title%,(._) (._),$1 - $2)

i tried this but failed to get the desired result. i get two dashes instead of one.

action\>replace with regular expression  
field\> title  
re\>(._) (._)  
replace with\>$1 - $2)

kindly help.

---

<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: [April 2, 2012, 5:29am UTC](https://community.mp3tag.de/t/how-to-put-a-dash-before-the-last-word-in-a-title/13278/2 "2012-04-02T05:29:00Z")

</div>

$regexp(%title%,'\s(i[^]+)$', - $1)

---

<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:23pm UTC](https://community.mp3tag.de/t/how-to-put-a-dash-before-the-last-word-in-a-title/13278/3 "2026-02-09T12:23:45Z")

</div>


