# 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:** 1
**Showing post:** 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

---

_[View the full topic](https://community.mp3tag.de/t/caps-for-irish-names-but-not-contractions/12701)._
