Regex for file extensions
-
For a project I want to post here I'd like to be able to select only files with certain extensions, like for instance
wav
ANDaif
I need it for
FileSystem.browse(FileSystem.Downloads, false, "\\.wav\\.aif", function(f) { });
and
FileSystem.findFiles(r, "\\.wav\\.aif", true);
Truth is that I'd rather prefer to learn hieroglyphs than regex :face_vomiting: It's an allergy thing, I swell up and sweat with pimples everywhere... Believe me, you don't want to see me like this... I know some people here are shivering, waiting for someone who needs a regex help, so I just want to help them
-
tried
*.(wav|aif)
with no luck, thought I was smart for a moment, even proud of myself for copying this from a website, but... :) -
I asked the same thing - https://forum.hise.audio/topic/7513/is-findfiles-multiple-wildcards-possible?_=1684252069539
btw, this site helps me a lot with regex - https://regex101.com/
Probably the AI could help too but I haven't needed it yet.
-
@d-healey Oh thanks it is very recent what you asked... I did search but haven't found this thread...