# Little trouble with Regex

**URL:** <https://community.mp3tag.de/t/little-trouble-with-regex/17066>\
**Category:** Support\
**Created:** [July 18, 2015, 6:28pm UTC](https://community.mp3tag.de/t/little-trouble-with-regex/17066 "2015-07-18T18:28:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Etz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/etz/32/7648_2.png) [@Etz](https://community.mp3tag.de/u/Etz)\
**Post date:** [July 18, 2015, 6:28pm UTC](https://community.mp3tag.de/t/little-trouble-with-regex/17066/1 "2015-07-18T18:28:48Z")

</div>

Currently using very simple regex to create mixed case filenames.

Regular expression: ^(.\*)$  
Replace Matches with: $caps($1)

Now, trouble is, as some words/sentences may be in brackets, the first word inside bracket is always ignored. (Bracket itself does not have case, right...)  
How to include it aswell so brackets would be simply ignored and first letter/word after bracket would be also capitalized in result?

---

<div class="post-metadata">

**Author:** ![Etz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/etz/32/7648_2.png) [@Etz](https://community.mp3tag.de/u/Etz)\
**Post date:** [July 18, 2015, 6:37pm UTC](https://community.mp3tag.de/t/little-trouble-with-regex/17066/2 "2015-07-18T18:37:50Z")

</div>

OK, resolved it...

Regular expression: ([^()]\*)  
Replace Matches with: $caps($1)

---

<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 19, 2015, 8:55am UTC](https://community.mp3tag.de/t/little-trouble-with-regex/17066/3 "2015-07-19T08:55:58Z")

</div>

> [@Etz](#):
>
> OK, resolved it...  
> Regular expression: ([^()]\*)  
> Replace Matches with: $caps($1)

See Mp3tag manual: Case conversion Normal  
[https://docs.mp3tag.de/scripting](https://docs.mp3tag.de/scripting)

Without the need of coding a regular expression ... this works the same ...

**Action: Format value Field : TITLE Formatstring: $caps(%TITLE%,'(')**

... or ...

**Action: Format value Field : \_FILENAME Formatstring: $caps(%\_FILENAME%,'(')**

Also try out the action "Case Conversion".

DD.20150719.1309.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:25pm UTC](https://community.mp3tag.de/t/little-trouble-with-regex/17066/4 "2026-02-09T12:25:46Z")

</div>

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


