# Select First Word only

**URL:** https://community.mp3tag.de/t/select-first-word-only/11280
**Category:** General Discussion
**Created:** [December 12, 2010, 7:54pm UTC](https://community.mp3tag.de/t/select-first-word-only/11280 "2010-12-12T19:54:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shwmcc](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/e68b1a/32.png) [@shwmcc](https://community.mp3tag.de/u/shwmcc)
#### Post date: [December 12, 2010, 7:54pm UTC](https://community.mp3tag.de/t/select-first-word-only/11280/1 "2010-12-12T19:54:18Z")

</div>

I often get Title tags that have the Composer's name as the first word of the Title. There isn't any punctuation between the Composer word and the Title words, and the whole field can be any number of words long. How can I write a Regular Expression to insert a "-" between the first and second word, so that I can subsequently split the field into two tags?

I have tried replacing (.+) (.+) with $1 - $2, but this always inserts the "-" before the last word of the field, not the first. Any help would be welcome!

Thanks.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [December 12, 2010, 8:13pm UTC](https://community.mp3tag.de/t/select-first-word-only/11280/2 "2010-12-12T20:13:37Z")

</div>

> [@SarahMcC](#):
>
> ... How can I write a Regular Expression to insert a "-" between the first and second word, so that I can subsequently split the field into two tags? I have tried replacing (.+) (.+) with $1 - $2, but this always inserts the "-" before the last word of the field, not the first. ...

If you want to experiment with the regular expression, you can try this code: **(.+?) (.+)**

DD.20101212.2214.CET
