# Select string between parenthesis

**URL:** https://community.mp3tag.de/t/select-string-between-parenthesis/12623
**Category:** Support
**Created:** [October 24, 2011, 7:36pm UTC](https://community.mp3tag.de/t/select-string-between-parenthesis/12623 "2011-10-24T19:36:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![d\_abbatelli](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/8e8cbc/32.png) [@d\_abbatelli](https://community.mp3tag.de/u/d_abbatelli)
#### Post date: [October 24, 2011, 7:36pm UTC](https://community.mp3tag.de/t/select-string-between-parenthesis/12623/1 "2011-10-24T19:36:07Z")

</div>

Hello

I'm asking something which is probably pretty easy, but I can't find a way with the string functions (probably because I didn't understand how the $str\*\*\* functions work).

I want to select just the string between two square parenthesis.

As example, in:  
1983 - Kill 'Em All [25DP 5339]  
I just want [25DP 5339] (possibly with the parenthesis, but everything will work.

How can I do that?

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [October 24, 2011, 8:05pm UTC](https://community.mp3tag.de/t/select-string-between-parenthesis/12623/2 "2011-10-24T20:05:24Z")

</div>

> [@Daniele](#):
>
> As example, in:  
> 1983 - Kill 'Em All [25DP 5339]  
> I just want [25DP 5339] (possibly with the parenthesis, but everything will work.

assuming that the string is in the ALBUM tag field:

$regexp(%album%,'._['(.+)']._',$1)

or easier, but not usable as a scripting function which you can built into other actions:  
assuming that you want the string into the CATALOG # tag field.

Action: Guess Value  
Sourceformat: %album%  
Guessing Pattern: %dummy% [%catalog #%]

---

<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/select-string-between-parenthesis/12623/3 "2026-02-09T12:23:24Z")

</div>


