# Capitalizing in brackets

**URL:** <https://community.mp3tag.de/t/capitalizing-in-brackets/17037>\
**Category:** Support\
**Created:** [July 9, 2015, 12:32pm UTC](https://community.mp3tag.de/t/capitalizing-in-brackets/17037 "2015-07-09T12:32:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)\
**Post date:** [July 9, 2015, 12:32pm UTC](https://community.mp3tag.de/t/capitalizing-in-brackets/17037/1 "2015-07-09T12:32:48Z")

</div>

I would like to know how to capitalize all letter that are placed in these kind of brackets:  
**[]**

What I have now is

```
Replace with regular expression
Field: TITLE
Regular expression: [(.{1})]
Replace matches with: [$upper($0)]

```

but that doesn't work

Please note, that the code would have to start executing itself after seeing the opening, and stop after the closing ] - it can't just start and run to the end of tag field

---

<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:** [July 9, 2015, 1:31pm UTC](https://community.mp3tag.de/t/capitalizing-in-brackets/17037/2 "2015-07-09T13:31:18Z")

</div>

You may try:  
$regexp(%title%,'([.\*])',\U$1)  
in a format value action.  
Set the correct fieldname in the regexp()

---

<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:** [July 9, 2015, 3:10pm UTC](https://community.mp3tag.de/t/capitalizing-in-brackets/17037/3 "2015-07-09T15:10:55Z")

</div>

> [@zerow](#):
>
> I would like to know how to capitalize all letter that are placed in these kind of brackets: ...

**Proposals for changing ... Tag-Field: TITLE From : Ab[c de fg]hi To : Ab[C DE FG]hi Action: Replace with Regular Expression Field : TITLE Regular Expression : \[.+?\] Replace matches with: \U$0 ... or ... Action: Replace with Regular Expression Field : TITLE Regular Expression : \[.+?\] Replace matches with: $upper($0) ... or ... Action: Format value Field : TITLE Formatstring: $regexp(%TITLE%,'\[.+?\]','\U$0') ... or ... experimental ... Note: Part '[xxx]' must be embedded in text string. Action: Format value Field : TITLE Formatstring: $replace(%TITLE%,'[','\\\\',']','\\\\') Action: Format value Field : TITLE Formatstring: $meta(TITLE,0)'['$upper($meta(TITLE,1))']'$meta(TITLE,2)**

DD.20150709.1914.CEST

---

<div class="post-metadata">

**Author:** ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)\
**Post date:** [July 9, 2015, 4:26pm UTC](https://community.mp3tag.de/t/capitalizing-in-brackets/17037/4 "2015-07-09T16:26:29Z")

</div>

> [@ohrenkino](#):
>
> You may try:  
> $regexp(%title%,'([.\*])',\U$1)  
> in a format value action.  
> Set the correct fieldname in the regexp()

Thise seems to do the trick

Thank you both

---

<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:25pm UTC](https://community.mp3tag.de/t/capitalizing-in-brackets/17037/5 "2026-02-09T12:25:45Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


