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

**URL:** https://community.mp3tag.de/t/how-can-i-put-a-dash-before-the-last-word-in-a-title/9858
**Category:** General Discussion
**Created:** [February 9, 2010, 10:32am UTC](https://community.mp3tag.de/t/how-can-i-put-a-dash-before-the-last-word-in-a-title/9858 "2010-02-09T10:32:06Z")
**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: [February 9, 2010, 10:32am UTC](https://community.mp3tag.de/t/how-can-i-put-a-dash-before-the-last-word-in-a-title/9858/1 "2010-02-09T10:32:06Z")

</div>

number of words in the title field varies. in that circumstance how can i put a dash before the last word of a title?

---

<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: [February 9, 2010, 11:05am UTC](https://community.mp3tag.de/t/how-can-i-put-a-dash-before-the-last-word-in-a-title/9858/2 "2010-02-09T11:05:47Z")

</div>

action: replace with regular expression

search string:  
(._) (._)$  
replace string  
$1 - $2

---

<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: [February 9, 2010, 8:28pm UTC](https://community.mp3tag.de/t/how-can-i-put-a-dash-before-the-last-word-in-a-title/9858/3 "2010-02-09T20:28:34Z")

</div>

> [@ohrenkino](#):
>
> action: replace with regular expression
> 
> search string:  
> (._) (._)$  
> replace string  
> $1 - $2

O GOD! it works. thanks a lot ohrenkino. have a nice day
