Select First Word only


#1

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.


#2

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

DD.20101212.2214.CET