# RegExp Help

**URL:** https://community.mp3tag.de/t/regexp-help/13696
**Category:** Support
**Created:** [July 28, 2012, 1:40am UTC](https://community.mp3tag.de/t/regexp-help/13696 "2012-07-28T01:40:18Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [July 28, 2012, 3:06pm UTC](https://community.mp3tag.de/t/regexp-help/13696/4 "2012-07-28T15:06:32Z")

</div>

> [@DetlevD](#):
>
> **$regexp($caps2(%FIELD%,' (["'),'\s\x27.','\U$0')**

**The same not be done with:**

Begin Action Group **\_Script Test#TEST**

**Action #1** _Actiontype 4:_ **Replace with regular expression** _Field \_\_\_\_\_\_\_\_\_\_\_\_\_\_:_ **\_TAG** _Regular expression \_:_ **(\B|^)(\(|\[|"|')(.)**_Replace matches with:_ **$1$2$upper($3)**[\_] Case sensitive comparison

End Action Group **\_Script Test#TEST** (1 Action)

**Resulting in:**

(the [torchum' "never 'stops blank(the[torchum"never'stops \>\>\>\> (The [Torchum' "Never 'Stops blank(the[torchum"never'stops

by breaking up the different parts like _not a word boundary OR start of string_ / (["'' / any one character to capture as $1, $2 & $3 (changed to upper-case) it seems to work. If you don't separate them like this you get unwanted results.

Plus one thing with using the action _'replace with regular expression'_ you can affect \_TAG (All tags) like the example above whereas with the format action you can't.

Anybody know why mp3tag doesn't pick up the start of the string '_**(t**_he [torchum' "never...' by using the \B. My fix was to put in a '|^' to fix the problem.

---

_[View the full topic](https://community.mp3tag.de/t/regexp-help/13696)._
