# O'dxxx to O'Dxxx

**URL:** https://community.mp3tag.de/t/odxxx-to-odxxx/14428
**Category:** Support
**Created:** [February 6, 2013, 9:28am UTC](https://community.mp3tag.de/t/odxxx-to-odxxx/14428 "2013-02-06T09:28:43Z")
**Posts on this page:** 10
**Page:** 1

<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 6, 2013, 9:28am UTC](https://community.mp3tag.de/t/odxxx-to-odxxx/14428/1 "2013-02-06T09:28:43Z")

</div>

Is there a way of correcting the Irish surname commonality, so, for example, changing O'dowd to O'Dowd?  
Many thanks,  
FM

---

<div class="post-metadata">

### Author: ![mjcm](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/9d8465/32.png) [@mjcm](https://community.mp3tag.de/u/mjcm)
#### Post date: [February 6, 2013, 9:54am UTC](https://community.mp3tag.de/t/odxxx-to-odxxx/14428/2 "2013-02-06T09:54:10Z")

</div>

This maybe helps !

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

---

<div class="post-metadata">

### Author: ![Lee\_Dailey](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lee_dailey/32/4832_2.png) [@Lee\_Dailey](https://community.mp3tag.de/u/Lee_Dailey)
#### Post date: [February 8, 2013, 12:00pm UTC](https://community.mp3tag.de/t/odxxx-to-odxxx/14428/3 "2013-02-08T12:00:18Z")

</div>

howdy flyingmale,

this will do it from in the actions dialog ...

field = \_TITLE  
regex = (C|D|L|O)'(.{1})  
replace matches with = $1'$upper($2)

you can replace the c,d,l,o with whatever letters you want or remove all but the "o". it tests for a specific letter followed an apostrophe and at least one letter.

so that ...  
L'orange = L'Orange  
O'dell = O'Dell  
D'meer = D'Meer  
C'tahr = C'Tahr

take care,  
lee

---

<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:52am UTC](https://community.mp3tag.de/t/odxxx-to-odxxx/14428/4 "2013-02-12T09:52:53Z")

</div>

Thanks so much, Lee, that works great!  
FM

---

<div class="post-metadata">

### Author: ![Lee\_Dailey](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lee_dailey/32/4832_2.png) [@Lee\_Dailey](https://community.mp3tag.de/u/Lee_Dailey)
#### Post date: [February 12, 2013, 9:58am UTC](https://community.mp3tag.de/t/odxxx-to-odxxx/14428/5 "2013-02-12T09:58:14Z")

</div>

> [@flyingmale](#):
>
> Thanks so much, Lee. I'll try that now - only just seen this reply.  
> FM

howdy flyingmale,

you are quite welcome! glad to help a little now and then ... [_grin_]

take care,  
lee

---

<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, 10:16am UTC](https://community.mp3tag.de/t/odxxx-to-odxxx/14428/6 "2013-02-12T10:16:35Z")

</div>

> [@Lee\_Dailey](#):
>
> howdy flyingmale,
> 
> you are quite welcome! glad to help a little now and then ... [_grin_]
> 
> take care,  
> lee

I've now worked out a new edit of this for Mac.. and Mc... ?

regex = (Mac)(.{1})  
replace matches with = $1$upper($2)

regex = (Mc)(.{1})  
replace matches with = $1$upper($2)

Great!  
Thanks again  
FM

---

<div class="post-metadata">

### Author: ![Lee\_Dailey](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lee_dailey/32/4832_2.png) [@Lee\_Dailey](https://community.mp3tag.de/u/Lee_Dailey)
#### Post date: [February 12, 2013, 10:51am UTC](https://community.mp3tag.de/t/odxxx-to-odxxx/14428/7 "2013-02-12T10:51:42Z")

</div>

> [@flyingmale](#):
>
> Here's a thing, Lee - could that be edited to also include Mac.. and Mc... ? I tried just adding them to your list after (...|O|Mac|Mc...), but it didn't work...  
> FM

howdy flyingmale,

i don't understand what you are trying to do ... please show an example.

* * *

here are two that _i_ use for Mac & Mc ...

field = \_TAG  
regex = (^|\s|(|[|')Mac([bdfgln])  
replace matches = $1Mac$upper($2)

the above finds any "Mac" that is at the beginning of a word by testing for ...

- at the beginning of the field
- after a space
- after a (
- after a [
- after a '

... and then followed by any of b-d-f-g-l-n.  
other than an "a", these are the only letters i have ever seen in a "mac-whatever" name. i left out the "a" [MacArthur] since i have a surprising number of artists and titles with "maca" at the beginning of the word. really odd, that. [_grin_] you may want to include the "a" if your listing has more MacNames that cap the "a".

then it upper cases the letter after the "c".

Macdonald = MacDonald  
Macleod = MacLeod

* * *

this one does the same beginning-of-word test and then upper cases anything after the Mc.

field = \_TAG  
regex = (^|\s|(|[|')Mc(.{1})  
replace matches = $1Mc$upper($2)

Mcleod = McLeod  
Mcduff = McDuff

is that what you are looking for?

take care,  
lee

---

<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: [February 12, 2013, 11:28am UTC](https://community.mp3tag.de/t/odxxx-to-odxxx/14428/8 "2013-02-12T11:28:40Z")

</div>

> [@flyingmale](#):
>
> I've now worked out a new edit of this for Mac.. and Mc...

It looks like all those problems have been solved already, see also ...  
Zoofield  
[Regular Expressions](https://community.mp3tag.de/t/521/28)  
yog-sothoth  
[Case conversion...](https://community.mp3tag.de/t/11684/1)  
... only to pick two guys out of the crowd of forum contributors.

DD.20130211.1322.CET

---

<div class="post-metadata">

### Author: ![Lee\_Dailey](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lee_dailey/32/4832_2.png) [@Lee\_Dailey](https://community.mp3tag.de/u/Lee_Dailey)
#### Post date: [February 13, 2013, 4:26am UTC](https://community.mp3tag.de/t/odxxx-to-odxxx/14428/9 "2013-02-13T04:26:15Z")

</div>

> [@DetlevD](#):
>
> It looks like all those problems have been solved already, see also ...  
> Zoofield  
> [Regular Expressions](https://community.mp3tag.de/t/521/28)  
> yog-sothoth  
> [Case conversion...](https://community.mp3tag.de/t/11684/1)  
> ... only to pick two guys out of the crowd of forum contributors.
> 
> DD.20130211.1322.CET

howdy DetlevD,

thank you for those links! [_grin_] i _knew_ i got those regexes from here but could not remember who from.

the OP edited his Mac/Mc post so that it no longer matches up with my response. [_grin_] makes for a rather weird read, now.

take care,  
lee

---

<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:24pm UTC](https://community.mp3tag.de/t/odxxx-to-odxxx/14428/10 "2026-02-09T12:24:19Z")

</div>


