# Add Spaces Before Capitals

**URL:** https://community.mp3tag.de/t/add-spaces-before-capitals/7013
**Category:** Support
**Created:** [July 7, 2008, 2:40pm UTC](https://community.mp3tag.de/t/add-spaces-before-capitals/7013 "2008-07-07T14:40:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Adamarla](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@Adamarla](https://community.mp3tag.de/u/Adamarla)
#### Post date: [July 7, 2008, 2:40pm UTC](https://community.mp3tag.de/t/add-spaces-before-capitals/7013/1 "2008-07-07T14:40:16Z")

</div>

How can I use an action to insert spaces before each capital letter (except for the first word) if one is not already there?

Example:  
AllisonCrow - RunningForHome  
to:  
Allison Crow - Running For Home

Thanks

---

<div class="post-metadata">

### Author: ![Adamarla](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@Adamarla](https://community.mp3tag.de/u/Adamarla)
#### Post date: [July 7, 2008, 7:25pm UTC](https://community.mp3tag.de/t/add-spaces-before-capitals/7013/2 "2008-07-07T19:25:55Z")

</div>

Well, I learnt Regex and solved it myself.

For those interested, I made a "Format Value" Action:

Field = TITLE  
Format String = $regexp(%title%,(?\<=\l)(?=\u), )

It looks back one character for a lower case letter, "(?\<=\l)"  
and then looks forward a character for an upper case letter, "(?=\u)"  
putting a space in if both are true. ", )"

---

<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:21pm UTC](https://community.mp3tag.de/t/add-spaces-before-capitals/7013/3 "2026-02-09T12:21:02Z")

</div>


