# Inserting Spaces

**URL:** https://community.mp3tag.de/t/inserting-spaces/8534
**Category:** Support
**Created:** [June 29, 2009, 8:38pm UTC](https://community.mp3tag.de/t/inserting-spaces/8534 "2009-06-29T20:38:18Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![jplank](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/c5a1d2/32.png) [@jplank](https://community.mp3tag.de/u/jplank)
#### Post date: [June 29, 2009, 8:38pm UTC](https://community.mp3tag.de/t/inserting-spaces/8534/1 "2009-06-29T20:38:18Z")

</div>

I've searched the forums and had no luck finding any answers to this.

I have several MP3 files where the title tags have no spaces. For example, the song "Blowing in the wind" has a title tag of "Blowinginthewind". Is there any way to use Mp3tag to recognize the words in the title and insert spaces between them?

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [June 30, 2009, 9:41am UTC](https://community.mp3tag.de/t/inserting-spaces/8534/2 "2009-06-30T09:41:59Z")

</div>

It can do so if the title has different capitalisation for the different words, e.g., TagsLikeThis --otherwise it's not possible to detect word boundaries automatically with Mp3tag.

See FAQ on [Separating strings that are written in one word](https://community.mp3tag.de/t/967/1).

---

<div class="post-metadata">

### Author: ![lobojon](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@lobojon](https://community.mp3tag.de/u/lobojon)
#### Post date: [January 17, 2010, 6:22pm UTC](https://community.mp3tag.de/t/inserting-spaces/8534/3 "2010-01-17T18:22:33Z")

</div>

What if the one word string contains a hyphen (or any other character for that matter) in the middle of it?  
For example, where the

title field = Madonna-Take a bow

I would like to separate the string and insert spaces on each side of the hyphen. Then, I could split the madonna and take a bow into their artist and title fields, respectively.

I tried using the FAQ that showed the action "-" to " - " but that did not work.

I also tried using the FAQ you list here with a few changes, but I could not get it to work.

Any ideas? Thank you.

---

<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: [January 17, 2010, 7:00pm UTC](https://community.mp3tag.de/t/inserting-spaces/8534/4 "2010-01-17T19:00:32Z")

</div>

_Action type:_ **Replace with regular expressions**  
_Regular expression:_ **\s\*-\s\***  
_Replace matches with:_ **" - "** (without quotes)

---

<div class="post-metadata">

### Author: ![lobojon](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@lobojon](https://community.mp3tag.de/u/lobojon)
#### Post date: [January 18, 2010, 2:54am UTC](https://community.mp3tag.de/t/inserting-spaces/8534/5 "2010-01-18T02:54:01Z")

</div>

Thanks.

I have not tried your version yet, but I was successful doing the following:

Action type = replace with regular expressions

Field = title  
Regular expression = ^(.+?)-(.+?)  
Replace matches with = $1 - $2

---

<div class="post-metadata">

### Author: ![ticket.mistress](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/d9b06d/32.png) [@ticket.mistress](https://community.mp3tag.de/u/ticket.mistress)
#### Post date: [January 19, 2010, 3:42am UTC](https://community.mp3tag.de/t/inserting-spaces/8534/6 "2010-01-19T03:42:04Z")

</div>

lobojon-

dano's version will produce the same results as yours in some situations. dano's version first removes the whitespace surrounding the hyphen before putting the leading and trailing space. your version will add the spaces regardless. also, and you may not want this- dano's version will add spaces to all of the hyphens in your field, not just the first hyphen.

---

<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: [March 1, 2024, 2:36pm UTC](https://community.mp3tag.de/t/inserting-spaces/8534/7 "2024-03-01T14:36:03Z")

</div>

4 posts were split to a new topic: [Add space in front of bracket](https://community.mp3tag.de/t/add-space-in-front-of-bracket/63948)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [March 3, 2024, 4:08pm UTC](https://community.mp3tag.de/t/inserting-spaces/8534/8 "2024-03-03T16:08:52Z")

</div>


