# Case Conversion with regex

**URL:** https://community.mp3tag.de/t/case-conversion-with-regex/2745
**Category:** Support
**Created:** [January 8, 2006, 3:23pm UTC](https://community.mp3tag.de/t/case-conversion-with-regex/2745 "2006-01-08T15:23:35Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![k00lice](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/5fc32e/32.png) [@k00lice](https://community.mp3tag.de/u/k00lice)
#### Post date: [January 8, 2006, 3:23pm UTC](https://community.mp3tag.de/t/case-conversion-with-regex/2745/1 "2006-01-08T15:23:35Z")

</div>

First of all, this program is great. Thanks for working so hard.

Anyway, this is what I have a problem with.  
I am trying to convert cases of tags to mixed tags.

Example)  
I AM SO gooD And a Dog of John -\> I Am So Good And A Dog Of John  
:This is how you get when you use mixed conversion.

I do not want some of words to convert to Mixed cases, such as A, An, Of.  
So my target is something like this...

Target)  
I Am So Good and a Dog of John

I put this regular expression after mixed case conversion

```
Regex (.*) (a |the |of |to |an |and ) and replace with $1 \l$2

```

But this doesn't work as I wanted it to be

Result)  
I Am So Good And A Dog of John

The expression above just convert last a, an, of or whatever, but ignores any words before that.

Would you please let me know how I can manage this?

---

_[View the full topic](https://community.mp3tag.de/t/case-conversion-with-regex/2745)._
