# Capitalizing sentence with commas inside parentheses

**URL:** https://community.mp3tag.de/t/capitalizing-sentence-with-commas-inside-parentheses/48985
**Category:** Support
**Created:** [May 17, 2020, 5:41pm UTC](https://community.mp3tag.de/t/capitalizing-sentence-with-commas-inside-parentheses/48985 "2020-05-17T17:41:30Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [May 17, 2020, 6:57pm UTC](https://community.mp3tag.de/t/capitalizing-sentence-with-commas-inside-parentheses/48985/4 "2020-05-17T18:57:21Z")

</div>

Doesn't this problem resemble a little this one:

> [@Move "Featuring" from Artist to Title](https://community.mp3tag.de/t/move-featuring-from-artist-to-title/11096/56):
>
> You have mixed something into the $regexp() function, which might be not allowed ... or does not work per se, ... which is here ... the function $caps2(). You may do what you want in a following second step ... Action "Format value" Tag-Field : ARTIST Formatstring: $regexp(%ARTIST%,'^(.+\sfeat.\s)(.\*)$','$1')$regexp($regexp(%ARTIST%,'^(.+\sfeat.\s)(.\*)$','$2'),'\b\w\*\b','\u$0') ... or ... Formatstring: $regexp(%ARTIST%,'^(.+\sfeat.\s)(.\*)$','$1')$caps2($regexp(%ARTIST%,'^(.+\sfeat.\s)(.…

You describe a pattern with 3 parts but only the third gets treated.  
I do not think that you can "replace" that but you have "Format value" the field again with a separate string function for each part that you then have to isolate with a regular expression each.  
If you use $caps() you may have to define the characters that determine the word separator.  
I tried the following:  
`$caps3($regexp('5:01AM (The Pros and Cons of Hitch Hiking, Pt. 10)','(.+) (\(.)(.*,.*\))',$1 $2$3),'(')`  
and got  
5:01am (The pros and cons of hitch hiking, pt. 10)

---

_[View the full topic](https://community.mp3tag.de/t/capitalizing-sentence-with-commas-inside-parentheses/48985)._
