# how to get a dash between words

**URL:** https://community.mp3tag.de/t/how-to-get-a-dash-between-words/11361
**Category:** Support
**Created:** [December 30, 2010, 3:04pm UTC](https://community.mp3tag.de/t/how-to-get-a-dash-between-words/11361 "2010-12-30T15:04:27Z")
**Posts on this page:** 4
**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: [December 30, 2010, 3:04pm UTC](https://community.mp3tag.de/t/how-to-get-a-dash-between-words/11361/1 "2010-12-30T15:04:27Z")

</div>

i have title as---  
Mayamma Ahiri  
i wanted a dash between the words. i tried regular exp-replace matches with

## field-title regexp-(|) (\u) matches with--$1 - $2 but it does not give the expected result.

## i have another title--- Sri Mathrubhutham Kanada i want a dash after the second word. how can i accomplish that? thanks.

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [December 30, 2010, 4:15pm UTC](https://community.mp3tag.de/t/how-to-get-a-dash-between-words/11361/2 "2010-12-30T16:15:22Z")

</div>

a dash before the last word:  
$regexp(%title%,(._) (._),$1 - $2)

before the second last word:  
$regexp(%title%,(._) (._ .\*),$1 - $2)

before the third last word:  
$regexp(%title%,(._) (._ .\* .\*),$1 - $2)

before the fourth last word:  
$regexp(%title%,(._) (._ .\* .\* .\*),$1 - $2)

before the fifth last word:  
$regexp(%title%,(._) (._ .\* .\* .\* .\*),$1 - $2)

and so on...

after the first word:  
$regexp(%title%,(._?) (._),$1 - $2)

after the second word:  
$regexp(%title%,(._? ._?) (.\*),$1 - $2)

after the third word:  
$regexp(%title%,(._? ._? ._?) (._),$1 - $2)

after the fourth word:  
$regexp(%title%,(._? ._? ._? ._?) (.\*),$1 - $2)

after the fith word:  
$regexp(%title%,(._? ._? ._? ._? ._?) (._),$1 - $2)

and so on...

if you want to use the regualar expression function as "stand alone" function, read the format strings above as: $regexp(field,regular expression,replace matches with)

---

<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: [December 30, 2010, 8:59pm UTC](https://community.mp3tag.de/t/how-to-get-a-dash-between-words/11361/3 "2010-12-30T20:59:33Z")

</div>

alas! it works. have no words to express my gratitude. thank you PONE. have a nice day.

---

<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:22pm UTC](https://community.mp3tag.de/t/how-to-get-a-dash-between-words/11361/4 "2026-02-09T12:22:47Z")

</div>


