Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.
Also make sure you've read the Forum Guidelines before posting in this forum.
![]() ![]() |
Mar 11 2010, 19:37
Post
#1
|
|
![]() Moderator Group: Moderators Posts: 5500 Joined: 4-September 03 From: Germany Member No.: 201 Mp3tag Version: 2.55a |
This thread collects useful Filter expressions
If you have a useful filter expression, please post it here and give a short description of what it does. These filter expressions can be used with the Mp3tag filter [F3]. Please look at http://help.mp3tag.de/main_filter.html for the documentation. Notes -All filter keywords must be uppercase. -All operations are case insensitive. This post has been edited by dano: May 6 2010, 22:27 -------------------- |
|
|
|
Mar 11 2010, 19:38
Post
#2
|
|
![]() Moderator Group: Moderators Posts: 5500 Joined: 4-September 03 From: Germany Member No.: 201 Mp3tag Version: 2.55a |
Simple filter
All files without tags: %_tag% IS "" Files with flac and ID3v2 tags: %_tag% HAS "flac id3v2" Files with mp4 extension %_extension% IS mp4 All files with a bitrate over 180 %_bitrate% GREATER 180 All files with embedded covers over 20 kbyte %_cover_size% GREATER 20480 This post has been edited by dano: Mar 18 2010, 09:57 -------------------- |
|
|
|
Mar 11 2010, 19:38
Post
#3
|
|
![]() Moderator Group: Moderators Posts: 5500 Joined: 4-September 03 From: Germany Member No.: 201 Mp3tag Version: 2.55a |
Filter with Scripting
Check if a field is longer than 4 characters: "$len(%bpm%)" GREATER 4 Files with multipe artist tags: "$meta_sep(Artist,\\)" HAS \\ Check if two fields have the same value: "$if($eql(%artist%,%band%),yes,no)" IS yes Check if the title is part of the filename: "$ifgreater($strstr(%_filename%,%title%),0,yes,no)" IS yes This post has been edited by dano: Mar 15 2010, 12:04 -------------------- |
|
|
|
Mar 16 2010, 21:10
Post
#4
|
|
![]() Moderator Group: Moderators Posts: 5500 Joined: 4-September 03 From: Germany Member No.: 201 Mp3tag Version: 2.55a |
Filter with Regex (regular expression)
Track numbers that have number/number syntax track MATCHES \d\/\d Filenames that start with two digits: %_filename% MATCHES ^\d\d Filenames that start with two digits not followed by another digit: %_filename% MATCHES ^\d\d\D Case sensitive filter: title MATCHES (?-i)regex Files with characters that are not in ISO-8859-1 in tag or filename * MATCHES [\x{0100}-\x{FFFF}] This post has been edited by dano: Dec 6 2010, 11:27 -------------------- |
|
|
|
Dec 6 2010, 11:24
Post
#5
|
|
![]() Moderator Group: Moderators Posts: 5500 Joined: 4-September 03 From: Germany Member No.: 201 Mp3tag Version: 2.55a |
Filenames with 2 hyphens
"$len($regexp(%_filename%,'[^-]',))" IS 2 Filenames with at least 2 hyphens "$len($regexp(%_filename%,'[^-]',))" GREATER 1 Track number is a single digit track MATCHES ^\d$ Title tag starts with four capital letters "$if($eql($regexp(%title%,^\u\u\u\u,),%title%),yes,no)" IS no This post has been edited by dano: Dec 6 2010, 11:36 -------------------- |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th May 2013 - 01:38 |