# I need a regex genius for casefixing...

**URL:** https://community.mp3tag.de/t/i-need-a-regex-genius-for-casefixing/9934
**Category:** Support
**Created:** [February 21, 2010, 4:21am UTC](https://community.mp3tag.de/t/i-need-a-regex-genius-for-casefixing/9934 "2010-02-21T04:21:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jets](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/b487fb/32.png) [@jets](https://community.mp3tag.de/u/jets)
#### Post date: [February 21, 2010, 4:21am UTC](https://community.mp3tag.de/t/i-need-a-regex-genius-for-casefixing/9934/1 "2010-02-21T04:21:46Z")

</div>

If possible I would like to have a list of words lower case unless at the beginning of a field OR if it is after a colon symbol. These words are:  
a  
an  
and  
as  
at  
by  
if  
in  
of  
on  
the  
to  
with

Right now all my Artist, Album and Title tags have the first word capitalized. In many instances I manually edited tags to keep acronyms like NYC, LAX, MC, DJ, or tripTYCH uppercase. There are also some instances where periods are present like "S.T.A.R.S." or "N.E.R.D." I would like to preserve these variations while preforming the original action at the beginning of my post.

Is it possible to have the expression ignore words with two or more letters capitalized whether a period is present or not? This would typically be considered a mistake and 'fixed' which I do not want to happen. If anyone can help me out I would be grateful.

I know it a complicated request, I just thought I'd ask as I began reading the regular expressions web pages and quickly got confused. Thanks for reading.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 23, 2010, 5:54am UTC](https://community.mp3tag.de/t/i-need-a-regex-genius-for-casefixing/9934/2 "2010-02-23T05:54:21Z")

</div>

If you have already got that list then a simple search&replace with a separate action for each word and field would do the trick.  
If you also ticked "word only" and "case sensitive" then the hits would probably be around 100%.  
You could summarize all actions in a longish action group.

I think that a "regular" expression is pointless as there is no "regularity" but only individuality.

---

<div class="post-metadata">

### Author: ![jets](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/b487fb/32.png) [@jets](https://community.mp3tag.de/u/jets)
#### Post date: [February 23, 2010, 1:07pm UTC](https://community.mp3tag.de/t/i-need-a-regex-genius-for-casefixing/9934/3 "2010-02-23T13:07:24Z")

</div>

Thanks. Am I missing something though? Under actions I do not have search and replace only replace with regular expression...

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 23, 2010, 7:04pm UTC](https://community.mp3tag.de/t/i-need-a-regex-genius-for-casefixing/9934/4 "2010-02-23T19:04:08Z")

</div>

almost a hit: there is also a simple replace (which implies a search as you have to enter a search string)  
Sorry that I cannot help you a regular expression but language is not regular.

---

<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 23, 2010, 9:10pm UTC](https://community.mp3tag.de/t/i-need-a-regex-genius-for-casefixing/9934/5 "2010-02-23T21:10:48Z")

</div>

> [@jets](#):
>
> ... Right now all my Artist, Album and Title tags have the first word capitalized. In many instances I manually edited tags to keep acronyms like NYC, LAX, MC, DJ, or tripTYCH uppercase. There are also some instances where periods are present like "S.T.A.R.S." or "N.E.R.D." I would like to preserve these variations while preforming the original action at the beginning of my post. ...

You may try out the different features of the $caps(), $caps2(), $caps3() functions.

DD.20100223.2310.CET

---

<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:22pm UTC](https://community.mp3tag.de/t/i-need-a-regex-genius-for-casefixing/9934/6 "2026-02-09T12:22:11Z")

</div>


