# $caps2() does not convert between parens b

**URL:** https://community.mp3tag.de/t/caps2-does-not-convert-between-parens-b/64990
**Category:** Support
**Created:** [June 8, 2024, 1:13pm UTC](https://community.mp3tag.de/t/caps2-does-not-convert-between-parens-b/64990 "2024-06-08T13:13:18Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![raymondjiii](https://community.mp3tag.de/user_avatar/community.mp3tag.de/raymondjiii/32/17213_2.png) [@raymondjiii](https://community.mp3tag.de/u/raymondjiii)
#### Post date: [June 8, 2024, 1:13pm UTC](https://community.mp3tag.de/t/caps2-does-not-convert-between-parens-b/64990/1 "2024-06-08T13:13:18Z")

</div>

Hi, I have a common track name pattern like the following example:

"some song from NYC (recorded live)"

Using an Action (with case conversion) I get:

"Some Song From Nyc (Recorded Live)"

Using Tag - Tag convert... with $caps2(%title%) I get:

"Some Song From NYC (recorded live)"

What I want is:

"Some Song From NYC (Recorded Live)"

I like how $caps2() works except it doesn't convert within the parens. Is there a way to make this work? (What I want is all words to have first characters capitalized, leave existing capitalized characters as is, apply the same previous two rules between parens ( ) and brackets

I see another post that states: "add the brackets as delimiter between words." I am not sure how to edit my action to do that and even if I did can I still use the $caps2() method to leave existing caps in place?

Thank you, Ray

---

<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: [June 8, 2024, 1:23pm UTC](https://community.mp3tag.de/t/caps2-does-not-convert-between-parens-b/64990/2 "2024-06-08T13:23:43Z")

</div>

You could use  
`$caps2(some song from NYC (recorded live),'( ')`  
or short  
`$caps2(%title%,'( ')`

---

<div class="post-metadata">

### Author: ![raymondjiii](https://community.mp3tag.de/user_avatar/community.mp3tag.de/raymondjiii/32/17213_2.png) [@raymondjiii](https://community.mp3tag.de/u/raymondjiii)
#### Post date: [June 8, 2024, 2:58pm UTC](https://community.mp3tag.de/t/caps2-does-not-convert-between-parens-b/64990/3 "2024-06-08T14:58:48Z")

</div>

Thank you, I am going to try that. If I want the brackets as well would that be:

$caps(%title%, '([ ')

?

Thank you!

---

<div class="post-metadata">

### Author: ![raymondjiii](https://community.mp3tag.de/user_avatar/community.mp3tag.de/raymondjiii/32/17213_2.png) [@raymondjiii](https://community.mp3tag.de/u/raymondjiii)
#### Post date: [June 8, 2024, 3:03pm UTC](https://community.mp3tag.de/t/caps2-does-not-convert-between-parens-b/64990/4 "2024-06-08T15:03:37Z")

</div>

I did mean $caps2() above.

---

<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: [June 8, 2024, 3:04pm UTC](https://community.mp3tag.de/t/caps2-does-not-convert-between-parens-b/64990/5 "2024-06-08T15:04:53Z")

</div>

Yes. Add all the characters following which a new word starts that should get a capital letter.  
See the documentation:

> **[Scripting Functions – Mp3tag Documentation](https://docs.mp3tag.de/scripting/#string-functions)**
>
> Documentation on Mp3tag's scripting functions. Mp3tag is the universal Tag Editor.

`$caps2(x,y)` returns the given string x as mixed case without changing uppercase characters. The second parameter y is optional and specifies the characters that trigger upper case.

---

<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: [July 8, 2024, 3:05pm UTC](https://community.mp3tag.de/t/caps2-does-not-convert-between-parens-b/64990/6 "2024-07-08T15:05:46Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
