# Lower case for specific words

**URL:** https://community.mp3tag.de/t/lower-case-for-specific-words/9246
**Category:** Support
**Created:** [November 1, 2009, 8:40pm UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246 "2009-11-01T20:40:01Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![dikiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/5fc32e/32.png) [@dikiz](https://community.mp3tag.de/u/dikiz)
#### Post date: [November 1, 2009, 8:40pm UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/1 "2009-11-01T20:40:01Z")

</div>

I have my collection tagged in a mix case conversion format like this :

> _Kings Of Leon - Because Of The Time_

Basically I want all little words such as "of", "the", "to", "or", etc to be in lower case :

> _Kings of Leon - Because of the Time_

But it should not apply when these words start the string : 

> _To Rococo Rot - The Amateur View_ **and not** _to Rococo Rot - the Amateur View_

I could use this solution [Regular expression to convert case to Case, with exceptions](https://community.mp3tag.de/t/6357/1) But it will re-tag all the artist fields and some have a specific format : **edIT, YACHT, ElectroniCAT** , etc.

I'm sure mp3tag can do that, but I can't figure out how.  
Does anyone have an idea ? 🙂

---

<div class="post-metadata">

### Author: ![dikiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/5fc32e/32.png) [@dikiz](https://community.mp3tag.de/u/dikiz)
#### Post date: [November 6, 2009, 5:32pm UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/2 "2009-11-06T17:32:21Z")

</div>

So my thread hasn't inspired anyone?

Can you tell me if it's even feasible or not?

---

<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 6, 2009, 5:54pm UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/3 "2009-11-06T17:54:36Z")

</div>

The example is already quite good. It does not change your artists the way you said.  
If you want to be sure you can change  
Field: \_ALL  
to  
Field: TITLE

Here's also a little change so it does not change  
To Rococo Rot - The Amateur View  
to  
To Rococo Rot - the Amateur View

Field: TITLE  
RegEx: (?\<!-)\s(a|an|and|as|at|by|but|for|in|of|on|or|out|the|to)(?=\s)  
Replace matches with: $lower($0)

---

<div class="post-metadata">

### Author: ![dikiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/5fc32e/32.png) [@dikiz](https://community.mp3tag.de/u/dikiz)
#### Post date: [November 6, 2009, 11:15pm UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/4 "2009-11-06T23:15:32Z")

</div>

Oh yea, I had even not tested but you are right, it works like a charm

---

<div class="post-metadata">

### Author: ![dikiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/5fc32e/32.png) [@dikiz](https://community.mp3tag.de/u/dikiz)
#### Post date: [May 8, 2010, 10:10am UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/5 "2010-05-08T10:10:54Z")

</div>

Hi again. I'm really happy with this RegEx. Mainly I try to follow these guidelines:  
[http://rateyourmusic.com/wiki/Capitalization](http://rateyourmusic.com/wiki/Capitalization)

So one thing I'd like to know is point #3 is possible: "Always capitalize the first and last word of a title, even if it would otherwise be lowercase"  
Bring it on and **on** =\> Bring it on and **On**

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [May 8, 2010, 11:08am UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/6 "2010-05-08T11:08:25Z")

</div>

Just a little question:  
Is this capitalization guide valid for '[rateyourmusic.com](http://rateyourmusic.com)' or is this an approved standard for capitalizing artist names, record labels, album and song titles in english?

So far, I'm using this (not so detailed) one: [http://musicbrainz.org/doc/Capitalization\_Standard\_English](http://musicbrainz.org/doc/Capitalization_Standard_English)

---

<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: [May 8, 2010, 11:51am UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/7 "2010-05-08T11:51:30Z")

</div>

Try this for the last word:

_Action type:_ **Replace with regular expression**  
_Field:_ **TITLE**  
_Regular expression:_ **\b(\l)(\w\*?)$**  
_Replace matches with:_ **$upper($1)$2**

[x] case-sensitive comparison

---

<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: [May 8, 2010, 12:21pm UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/8 "2010-05-08T12:21:56Z")

</div>

> [@dikiz](#):
>
> ... "Always capitalize the first and last word of a title, even if it would otherwise be lowercase"

Use the following scripting line with action "format value" in order to capitalize the first letter of the first and last word of a string:  
**$regexp(%TITLE%,'(?:^(\w+)\b)|(?:\b(\w+)$)','\u$0')**

DD.20100508.1621.CEST

---

<div class="post-metadata">

### Author: ![dikiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/5fc32e/32.png) [@dikiz](https://community.mp3tag.de/u/dikiz)
#### Post date: [May 8, 2010, 2:32pm UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/9 "2010-05-08T14:32:17Z")

</div>

Actually, is there a way to combine your suggestions with the RegEx I'm currently using :

```
Field: _ALL
RegEx: (?<!-)\s(a|an|the|and|but|or|nor|for|yet|so|as|at|by|for|in|of|on|to)(?=\s)
Replace matches with: $lower($0)
[] case-sensitive comparison

```

So the above can still apply **EXCEPT** if "a|an|the|(...)" is the last word.

//I've checked musicbrainz guidelines and they are pretty much the same, just a little bit more detailed.

---

<div class="post-metadata">

### Author: ![dikiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/5fc32e/32.png) [@dikiz](https://community.mp3tag.de/u/dikiz)
#### Post date: [May 11, 2010, 9:30am UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/10 "2010-05-11T09:30:11Z")

</div>

Could anyone tell if it's possible to include an "except" function to a RegEx as can be seen above?

---

<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: [May 11, 2010, 9:44am UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/11 "2010-05-11T09:44:52Z")

</div>

"Above" there can be seen something different things.  
Please explain what you want to achieve.

DD.20100511.1344.CEST

---

<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: [May 11, 2010, 9:51am UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/12 "2010-05-11T09:51:01Z")

</div>

The regex has (?=\s) at the end wich means it only works when the words a|an|the... are followed by a space character which is not the case if the word is the last one.

---

<div class="post-metadata">

### Author: ![dikiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/5fc32e/32.png) [@dikiz](https://community.mp3tag.de/u/dikiz)
#### Post date: [May 11, 2010, 6:37pm UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/13 "2010-05-11T18:37:32Z")

</div>

Aha I feel so dumb,.. it's the second time in the same topic that I'm asking something that is already done by this RegEx.

Many thanks ![^_^](https://community.mp3tag.de/uploads/default/original/1X/15b21e4a9fd37d565d77674de6a426ea5c1c9673.gif "^\_^")

---

<div class="post-metadata">

### Author: ![dikiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/5fc32e/32.png) [@dikiz](https://community.mp3tag.de/u/dikiz)
#### Post date: [May 15, 2010, 7:39pm UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/14 "2010-05-15T19:39:05Z")

</div>

Just another question, is it possible to add different values in "Field", or I should create another action?

I Tried "Field: TITLE,ALBUM" and Field: TITLE;ALBUM" but it won't work

---

<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: [May 16, 2010, 4:16am UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/15 "2010-05-16T04:16:02Z")

</div>

> [@dikiz](#):
>
> ... I Tried "Field: TITLE,ALBUM" and Field: TITLE;ALBUM" but it won't work

Did you find any reason or description in the Mp3tag manual to do so?  
If that does not work, then read the manual and surf through the forum to find any hint to do it the right way, there are plenty of examples to help you, ... although .... your question seems to be a new one.

To shorten the search process for you ...  
You can create a second action for the second field, both actions can be combined in an actiongroup.

DD.20100516.0815.CEST

---

<div class="post-metadata">

### Author: ![dikiz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/5fc32e/32.png) [@dikiz](https://community.mp3tag.de/u/dikiz)
#### Post date: [May 16, 2010, 11:42am UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/16 "2010-05-16T11:42:26Z")

</div>

> [@DetlevD](#):
>
> To shorten the search process for you ...  
> You can create a second action for the second field, both actions can be combined in an actiongroup.

That's what I had just say

> [@dikiz](#):
>
> Just another question, is it possible to add different values in "Field", or I should create another action?

---

<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: [May 16, 2010, 2:49pm UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/17 "2010-05-16T14:49:05Z")

</div>

> [@dikiz](#):
>
> Just another question, is it possible to add different values in "Field", or I should create another action?

The shortest answer to this sort of question is: Yes.

DD.20100516.1851.CEST

---

<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:21pm UTC](https://community.mp3tag.de/t/lower-case-for-specific-words/9246/18 "2026-02-09T12:21:54Z")

</div>


