# Cap Letter After Tab/Space

**URL:** https://community.mp3tag.de/t/cap-letter-after-tab-space/12513
**Category:** Support
**Created:** [September 17, 2011, 3:33pm UTC](https://community.mp3tag.de/t/cap-letter-after-tab-space/12513 "2011-09-17T15:33:55Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Beluna](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ed655f/32.png) [@Beluna](https://community.mp3tag.de/u/Beluna)
#### Post date: [September 17, 2011, 3:33pm UTC](https://community.mp3tag.de/t/cap-letter-after-tab-space/12513/1 "2011-09-17T15:33:55Z")

</div>

How to write action to change 1st letter after space to Cap:

Example listed under the Performers Field:

Album Credits:

Bee Gees producer  
John Blanch assistant Engineer  
Brown saxophone, Guitar  
Gary Brown saxophone  
Dennis Byron drums, Group Member

(If it doesn't display correctly there is a Tab/Space between the individual name and their role, which causes the 1st letter after the white space to be lower case instead of Uppercase).

producer should be Producer.

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [September 17, 2011, 4:47pm UTC](https://community.mp3tag.de/t/cap-letter-after-tab-space/12513/2 "2011-09-17T16:47:31Z")

</div>

> [@Beluna](#):
>
> How to write action to change 1st letter after space to Cap:  
> (If it doesn't display correctly there is a Tab/Space between the individual name and their role, which causes the 1st letter after the white space to be lower case instead of Uppercase).

_Action type:_ **Replace with regular expression**  
_Field:_ **YOUR REQUIRED FIELD**  
_Regular expression:_ **\b([\t]+|\s|\s+[\t]+|[\t]+\s+|\s+[\t]+\s+)(\w)**  
_Replace matches with:_**_$caps($2)_** represents a space

[] case-sensitive comparison

This action should do the trick. It changes to all first letters after a space to upper and keeps the existing UPPER CASE. If you need an explanation how the regexp works let me know.

See attached results.  
Ps. i've used "UNSYNCEDLYRICS" only for example.

 ![](https://community.mp3tag.de/uploads/default/original/2X/e/e75f9de95a31866c2ff8a3b65157f020d1245514.jpg)

---

<div class="post-metadata">

### Author: ![Beluna](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ed655f/32.png) [@Beluna](https://community.mp3tag.de/u/Beluna)
#### Post date: [September 18, 2011, 7:29am UTC](https://community.mp3tag.de/t/cap-letter-after-tab-space/12513/3 "2011-09-18T07:29:48Z")

</div>

> [@stevehero](#):
>
> _Action type:_ **Replace with regular expression**  
> _Field:_ **YOUR REQUIRED FIELD**  
> _Regular expression:_ **\b([\t]+|\s|\s+[\t]+|[\t]+\s+|\s+[\t]+\s+)(\w)**  
> _Replace matches with:_**_$caps($2)_** represents a space
> 
> [] case-sensitive comparison
> 
> This action should do the trick. It changes to all first letters after a space to upper and keeps the existing UPPER CASE. If you need an explanation how the regexp works let me know.
> 
> See attached results.  
> Ps. i've used "UNSYNCEDLYRICS" only for example.

It works but removes the space and adds "\_" between words.

Example

Barry Gibbs[space]producer  
Dennis Bryon[space]drums, Group Member

becomes

Barry\_Gibbs\_Producer  
Dennis\_Brown\_Drums, Group Member

Does the Expression tells it to remove the space? I created the action group with all the characters in your example.

I would like to maintain space (tab) between individual and position

Bee Gees [space] Producer  
Nick Blacona [space]Assistant Engineer  
John Blanch [space] Assistant Engineer  
Gary Brown [space] Saxophone

Thanks

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [September 18, 2011, 1:36pm UTC](https://community.mp3tag.de/t/cap-letter-after-tab-space/12513/4 "2011-09-18T13:36:32Z")

</div>

> [@Beluna](#):
>
> It works but removes the space and adds "\_" between words....

I have said that the "\_" represents a space in the above post.

> [@Beluna](#):
>
> I would like to maintain space (tab) between individual and position

Just add "$1" to the replace matches with instead of the " " (space character)

_Action type:_ **Replace with regular expression**  
_Field:_ **UNSYNCEDLYRICS**  
_Regular expression:_ **\b([\t]+|\s|\s+[\t]+|[\t]+\s+|\s+[\t]+\s+)(\w)**  
_Replace matches with:_ **$1$caps($2)**

[] case-sensitive comparison

---

<div class="post-metadata">

### Author: ![Beluna](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ed655f/32.png) [@Beluna](https://community.mp3tag.de/u/Beluna)
#### Post date: [September 18, 2011, 2:24pm UTC](https://community.mp3tag.de/t/cap-letter-after-tab-space/12513/5 "2011-09-18T14:24:24Z")

</div>

> [@stevehero](#):
>
> I have said that the "\_" represents a space in the above post.
> 
> Just add "$1" to the replace matches with instead of the " " (space character)
> 
> _Action type:_ **Replace with regular expression**  
> _Field:_ **UNSYNCEDLYRICS**  
> _Regular expression:_ **\b([\t]+|\s|\s+[\t]+|[\t]+\s+|\s+[\t]+\s+)(\w)**  
> _Replace matches with:_ **$1$caps($2)**
> 
> [] case-sensitive comparison

Wow, i was replying to tell you I see my mistake and I see you wrote the same point... remove the \_ and add a 1

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: [October 19, 2011, 7:58am UTC](https://community.mp3tag.de/t/cap-letter-after-tab-space/12513/6 "2011-10-19T07:58:01Z")

</div>

> [@Beluna](#):
>
> How to write action to change 1st letter after space to Cap: ...  
> Album Credits:
> 
> Bee Gees producer  
> John Blanch assistant Engineer  
> Brown saxophone, Guitar  
> Gary Brown saxophone  
> Dennis Byron drums, Group Member
> 
> (If it doesn't display correctly there is a Tab/Space between the individual name and their role, which causes the 1st letter after the white space to be lower case instead of Uppercase).  
> producer should be Producer.

Action: Format value  
Field: YOUR\_FIELD  
Formatstring: **$caps(%YOUR\_FIELD%,$char(9)$char(10)$char(32))**

From:  
BeeGeesproducer  
NickBlaconaassistantengineer  
JohnBlanchAssistantengineer  
GaryBrownsaxophone  
DennisByrondrums,Groupmember

To:  
BeeGeesProducer  
NickBlaconaAssistantEngineer  
JohnBlanchAssistantEngineer  
GaryBrownSaxophone  
DennisByronDrums,GroupMember

DD.20111019.1200.CEST

---

<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:23pm UTC](https://community.mp3tag.de/t/cap-letter-after-tab-space/12513/7 "2026-02-09T12:23:21Z")

</div>


