# caps for 'irish' names but not contractions?

**URL:** https://community.mp3tag.de/t/caps-for-irish-names-but-not-contractions/12701
**Category:** Support
**Created:** [November 16, 2011, 5:00pm UTC](https://community.mp3tag.de/t/caps-for-irish-names-but-not-contractions/12701 "2011-11-16T17:00:44Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![godzillajoe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@godzillajoe](https://community.mp3tag.de/u/godzillajoe)
#### Post date: [November 16, 2011, 5:00pm UTC](https://community.mp3tag.de/t/caps-for-irish-names-but-not-contractions/12701/1 "2011-11-16T17:00:44Z")

</div>

OK I'm sure this has been asked but I couldn't find it and am getting frustrated

I need a script to capitalize names such as

Sinead O'Connor

where a word starts with O' it caps the next letter after the O'

but not if the ' is in the middle of a word like can't, don't or won't

All I've managed to do is create Can'T, Don'T, Won'T

Not so hot with regular expressions myself and could use help

Thanks

---

<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 16, 2011, 5:53pm UTC](https://community.mp3tag.de/t/caps-for-irish-names-but-not-contractions/12701/2 "2011-11-16T17:53:06Z")

</div>

> [@godzillajoe](#):
>
> ... I need a script to capitalize names such as  
> Sinead O'Connor  
> where a word starts with O' it caps the next letter after the O'  
> but not if the ' is in the middle of a word like can't, don't or won't ...

Try this regular expression ...

**$regexp(%TITLE%,'\b.''''.','\U$0')**

From:  
i didn't see sinead o'connor live, shouldn't have i?  
To:  
i didn't see sinead O'Connor live, shouldn't have i?

DD.20111116.1954.CET

---

<div class="post-metadata">

### Author: ![godzillajoe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@godzillajoe](https://community.mp3tag.de/u/godzillajoe)
#### Post date: [November 16, 2011, 7:36pm UTC](https://community.mp3tag.de/t/caps-for-irish-names-but-not-contractions/12701/3 "2011-11-16T19:36:21Z")

</div>

I believe that does that trick. Thanks.

---

<div class="post-metadata">

### Author: ![flyingmale](https://community.mp3tag.de/user_avatar/community.mp3tag.de/flyingmale/32/8335_2.png) [@flyingmale](https://community.mp3tag.de/u/flyingmale)
#### Post date: [February 12, 2013, 9:47am UTC](https://community.mp3tag.de/t/caps-for-irish-names-but-not-contractions/12701/4 "2013-02-12T09:47:41Z")

</div>

> [@DetlevD](#):
>
> Try this regular expression ...  
> $regexp(%TITLE%,'\b.''''.','\U$0')

Thanks so much for the help.

I've also just seen the reply from Lee in the original post page, so I'm gonna try that first.

FM

---

<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/caps-for-irish-names-but-not-contractions/12701/5 "2026-02-09T12:23:26Z")

</div>


