Search per RegEx in Properties like ID-Field

Discussion related to "Everything" 1.5 Alpha.
Post Reply
data
Posts: 25
Joined: Sat Jun 17, 2017 8:17 am

Search per RegEx in Properties like ID-Field

Post by data »

Hi

I've tried to do a search in my indexed MP3-Collection.

But per RegEX.
For example i'm looking for mp3-Files where the lenght of Field encoded_by: matches 5 characters

thanks in advance
void
Developer
Posts: 16744
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search per RegEx in Properties like ID-Field

Post by void »

The easiest way to do this is with the len: search modifier.

*.mp3 len:encoded-by:5



If you want to use regex, please try the following:

*.mp3 regex:encoded-by:^.{5}$

^ = match start of encoded-by
. = match any character
{5} = match the previous element 5 times.
$ = match the end of encoded-by
data
Posts: 25
Joined: Sat Jun 17, 2017 8:17 am

Re: Search per RegEx in Properties like ID-Field

Post by data »

Thanks a lot

it could be so easy as it is.
Post Reply