# Upper case after an O' like O'Hugo

**URL:** https://community.mp3tag.de/t/upper-case-after-an-o-like-ohugo/12737
**Category:** Support
**Created:** [November 25, 2011, 8:35pm UTC](https://community.mp3tag.de/t/upper-case-after-an-o-like-ohugo/12737 "2011-11-25T20:35:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![flaminio](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/da6949/32.png) [@flaminio](https://community.mp3tag.de/u/flaminio)
#### Post date: [November 25, 2011, 8:35pm UTC](https://community.mp3tag.de/t/upper-case-after-an-o-like-ohugo/12737/1 "2011-11-25T20:35:26Z")

</div>

From the FAQ:

_Question:  
There are irish/scottish names like O'Donnel, O'Leary etc, that all should be upper case. But you cannot use upper case in general after an ' because the following examples are wrong spelled then (That'S, Ain'T etc.). How can I only get upper case after an O'?_

Answer:  
Create a new action in an existing action group and choose Replace with regular expression as action type.  
Regular expression: **O'(.{1})**  
Replace matches with: **O'$upper($1)**

This doesn't appear to work. It catches O'Hugo OK, but it also turns "Romeo's" into "RomeO'S".

Or did I do it wrong?

TIA...

---

<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: [November 25, 2011, 8:50pm UTC](https://community.mp3tag.de/t/upper-case-after-an-o-like-ohugo/12737/2 "2011-11-25T20:50:15Z")

</div>

> [@flaminio](#):
>
> ... There are irish/scottish names like O'Donnel, O'Leary etc, that all should be upper case. ... How can I only get upper case after an O'?

[caps for 'irish' names but not contractions?](https://community.mp3tag.de/t/12701/1)

... or ...  
Action: Replace using Regular Expression  
Field: ARTIST  
Regular Expression: \b.'.  
Replace by: \U$0

DD.20111125.2300.CET

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 25, 2011, 8:57pm UTC](https://community.mp3tag.de/t/upper-case-after-an-o-like-ohugo/12737/3 "2011-11-25T20:57:50Z")

</div>

You can check  
_[x] case-sensitive comparison_  
to avoid that.

---

<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/upper-case-after-an-o-like-ohugo/12737/4 "2026-02-09T12:23:28Z")

</div>


