HISE Logo Forum
    • Categories
    • Register
    • Login

    Regex for file extensions

    Scheduled Pinned Locked Moved General Questions
    4 Posts 2 Posters 361 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ustkU
      ustk
      last edited by ustk

      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 AND aif

      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 😛

      Can't help pressing F5 in the forum...

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @ustk
        last edited by ustk

        tried *.(wav|aif) with no luck, thought I was smart for a moment, even proud of myself for copying this from a website, but... :)

        Can't help pressing F5 in the forum...

        1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey
          last edited by d.healey

          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.

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          ustkU 1 Reply Last reply Reply Quote 0
          • ustkU
            ustk @d.healey
            last edited by

            @d-healey Oh thanks it is very recent what you asked... I did search but haven't found this thread...

            Can't help pressing F5 in the forum...

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            47

            Online

            1.7k

            Users

            11.7k

            Topics

            101.9k

            Posts