Display words with X amount of characters only?

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!

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

1 Like

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?

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

DD.20150624.1819.CEST

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

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

1 Like