Page 1 of 1

filter files with more than one extension

Posted: Thu Oct 06, 2016 5:55 pm
by Mag
I have a list of sound files .wav and .m4a, I would like to have both kind listed, I saw that this code works:

Code: Select all

put the files into soundListFiles
filter soundListFiles with ".wav"
I haven't find how to include two types. Obviously this don't works:

Code: Select all

filter soundListFiles with ".wav|*.m4a" -- don't work
:lol:

Re: filter files with more than one extension

Posted: Fri Oct 07, 2016 7:29 am
by Thierry
Mag wrote:I have a list of sound files .wav and .m4a, I would like to have both kind listed
This works:

Code: Select all

filter lines of soundListFiles with regex pattern "\.(wav|m4a)$"
Thierry