# How to match upper case letters in filter?

**URL:** https://community.mp3tag.de/t/how-to-match-upper-case-letters-in-filter/11560
**Category:** General Discussion
**Created:** [February 8, 2011, 5:11am UTC](https://community.mp3tag.de/t/how-to-match-upper-case-letters-in-filter/11560 "2011-02-08T05:11:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Oblio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/oblio/32/4828_2.png) [@Oblio](https://community.mp3tag.de/u/Oblio)
#### Post date: [February 8, 2011, 5:11am UTC](https://community.mp3tag.de/t/how-to-match-upper-case-letters-in-filter/11560/1 "2011-02-08T05:11:20Z")

</div>

I am trying to match consecutive upper case letters but neither of the following work

composer MATCHES (?-i)\u\u  
composer MATCHES (?-i)\L\L

Matching consecutive lower case letters works ok with \l\l or \U\U

I think it must be a bug.

---

<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 8, 2011, 5:39am UTC](https://community.mp3tag.de/t/how-to-match-upper-case-letters-in-filter/11560/2 "2011-02-08T05:39:39Z")

</div>

I think both variables have to be in lower case, e.g.  
%\_FILENAME% MATCHES "(?-i)\l\U" does not work  
but  
%\_FILENAME% MATCHES "(?-i)\l\u"  
filters all filenames where a lower case letter is followed by an upper case letter e.g. AudioTrack

---

<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: [February 8, 2011, 7:23am UTC](https://community.mp3tag.de/t/how-to-match-upper-case-letters-in-filter/11560/3 "2011-02-08T07:23:35Z")

</div>

It's bugged.

Workaround:  
"$if($eql($regexp(%title%,\u\u,),%title%),yes,no)" IS no
