# Display words with X amount of characters only?

**URL:** <https://community.mp3tag.de/t/display-words-with-x-amount-of-characters-only/16992>\
**Category:** Support\
**Created:** [June 24, 2015, 12:40pm UTC](https://community.mp3tag.de/t/display-words-with-x-amount-of-characters-only/16992 "2015-06-24T12:40:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phixion](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/dc4da7/32.png) [@Phixion](https://community.mp3tag.de/u/Phixion)\
**Post date:** [June 24, 2015, 12:40pm UTC](https://community.mp3tag.de/t/display-words-with-x-amount-of-characters-only/16992/1 "2015-06-24T12:40:03Z")

</div>

Does anyone know the regex syntax I need to use to display words with X number of characters only?

I've recently run Grammartron on my music but I've found a few short acronyms that haven't been capitalized.

Cheers for any help!

---

<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:** [June 24, 2015, 12:51pm UTC](https://community.mp3tag.de/t/display-words-with-x-amount-of-characters-only/16992/2 "2015-06-24T12:51:36Z")

</div>

you can use a dot for each letter you want to see and put a word-delimiter in front or behind it or both:  
%field% MATCHES "^... "  
%field% MATCHES " ... "  
%field% MATCHES " ...$"

The .{3} does not really save typing for 3 letters

---

<div class="post-metadata">

**Author:** ![Phixion](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/dc4da7/32.png) [@Phixion](https://community.mp3tag.de/u/Phixion)\
**Post date:** [June 24, 2015, 1:16pm UTC](https://community.mp3tag.de/t/display-words-with-x-amount-of-characters-only/16992/3 "2015-06-24T13:16:39Z")

</div>

Thank you very much!

I found a bunch of incorrect matches using this method.

Do you know how I would go about creating a column so that I can arrange filenames or tags in order of most and least characters?

---

<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:** [June 24, 2015, 2:19pm UTC](https://community.mp3tag.de/t/display-words-with-x-amount-of-characters-only/16992/4 "2015-06-24T14:19:31Z")

</div>

> [@Phixion](#):
>
> ... how I would go about creating a column so that I can arrange filenames or tags in order of most and least characters?

You want to measure the length of the filename?  
$len(%\_filename%)  
$len(%\_filename\_ext%)

DD.20150624.1819.CEST

---

<div class="post-metadata">

**Author:** ![Phixion](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/dc4da7/32.png) [@Phixion](https://community.mp3tag.de/u/Phixion)\
**Post date:** [June 24, 2015, 8:40pm UTC](https://community.mp3tag.de/t/display-words-with-x-amount-of-characters-only/16992/5 "2015-06-24T20:40:48Z")

</div>

Thank you both, I have no idea how you know so much regex! 🙂

---

<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:** [June 25, 2015, 7:27am UTC](https://community.mp3tag.de/t/display-words-with-x-amount-of-characters-only/16992/6 "2015-06-25T07:27:38Z")

</div>

> [@Phixion](#):
>
> Does anyone know the regex syntax I need to use to display words with X number of characters only? ...

Use the Mp3tag Filter [F3] to display only those tracks which match the regular expression.  
Examples for Filter expressions ...

Tag-Field TITLE contains a word string of 7 word characters size:  
TITLE MATCHES "\b\w{7}\b"

Tag-Field TITLE contains a word string of 7 to 12 word characters size:  
TITLE MATCHES "\b\w{7,12}\b"

Tag-Field TITLE contains one string of any characters of 34 characters size:  
TITLE MATCHES "^.{34}$"  
... or ...  
"$len(%TITLE%)" IS 34

Any Tag-Field contains any word string of 32 word characters size:

- MATCHES "\b\w{32}\b"

DD.20150625.1131.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:25pm UTC](https://community.mp3tag.de/t/display-words-with-x-amount-of-characters-only/16992/7 "2026-02-09T12:25:44Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


