# 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:** 3

<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 28, 2012, 9:10am UTC](https://community.mp3tag.de/t/regexp-help/13696/3 "2012-07-28T09:10:02Z")

</div>

> [@niche99](#):
>
> ... The 'torchum' Never Stops -\> The 'Torchum' Never Stops \<- which I want.  
> The Massive Improve'lence -\> The Massive Improve'Lence \<- which I don't want. ...

The problem seems to be the punctuation mark "Apostroph", which is a word delimiter.  
Therefore it is not so easy to code a lookbehind or lookahead.  
But there is a workaround, which can help quickly.

For the capitalization use the function $caps2() and subsequently do the trick using the function $regexp().

**$regexp($caps2(%FIELD%,' (["'),'(\s\x27)(.)','$1\u$2')**

... or ...

**$regexp($caps2(%FIELD%,' (["'),'\s\x27.','\U$0')**

... or ...

**$regexp(%FIELD%,'(^|\x20\x27|[[(\x20\x22])(.)','$1\u$2')**

Apply the above expressions by action "Format value" or by converter "Tag - Tag".

If you want to apply the capitalization rule to all tag-fields at once, then use ...

_Actiontype 4:_ **Replace with regular expression** 

_Field \_\_\_\_\_\_\_\_\_\_\_\_\_\_:_ **\_TAG**  
_Regular expression \_:_ **(^|\x20\x27|[[(\x20\x22])(.)**  
_Replace matches with:_ **$1\u$2**

 [\_] Case sensitive comparison

**Examples**  
**the 'torchum' never stops -\> The 'Torchum' Never Stops  
the massive improve'lence -\> The Massive Improve'lence  
aaa bbb(ccc[ddd"eee 'fff -\> Aaa Bbb(Ccc[Ddd"Eee 'Fff  
aaa bbb(ccc[ddd"eee'fff 'ggg -\> Aaa Bbb(Ccc[Ddd"Eee'fff 'Ggg**

See also ...  
[Großschreibung nach Hochkomma mit caps2?](https://community.mp3tag.de/t/4839/2)

DD.20120728.1314.CEST  
Edit.DD.20120729.0842.CEST

---

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