HISE Logo Forum
    • Categories
    • Register
    • Login

    getAllComponents regex doesn't work

    Scheduled Pinned Locked Moved Solved Bug Reports
    3 Posts 2 Posters 215 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.
    • d.healeyD
      d.healey
      last edited by

      According to the API browser getAllComponents() should take a regex string, but that doesn't seem to work.

      In this example I have three buttons. Button1 Button2 and Button.

      const buttons = Content.getAllComponents("Button\d");

      Should return Button1 and Button2 but it doesn't return anything.

      HiseSnippet 753.3ocsU09ZSCDF+t1dxZUGNPvuF1m5fYocNmBCwt9lTzsUrygePXb6x01ic4tPxkoEQv+j8+.84RxZ5bc01.lODxyK+t7640aPflwCC0AHb4yl5yQ3GQFNUYlzdBUnP86fvaRNlFZ3ANIpZM0mFFxcQXbw2YUfKWBE+7q21hJoJFOSEBctVv3eP3ILYZGz78BorG0kelvaNu2uYelV0VK0Q.eJRpi7orqni4mPstUffvOnqqvnCFZnFdH3SKs6zgSzeUk3+4hPwkRtUnAZHbPIpQsmHjtCtIVCQHboAYQdwjH+ojiEthY5yx.OI1fSFh4yA3BKiRMVCJgmiRkRnzVjgr.guIyhkOOjzWAEjQTHUOOUR7EU3YXRaM3gxTyidEuW.HLCQ0CpWeWG30NGVoBjtCMNWFYLvGNuw4FXi4lijx1ZOesBjCqtcqXe9h61VXfagZIulefPYplBuljqFalrygihTLiPqbzpSzF9opp6T46UJW4GUb9aSiFsPaVZDnkRdvBMa6ZBVFvppHuK4A65bMUFwm4HjVucs5AqVshkjUlyQspuRXN0mmJ2SKcs0.622sxhRSqPMtXJCguLwU3MSqvI4Wj.NjxjDgFnX5O+zDZMfuW9fuQJ7Ef9S86PMTamZZ.AAoOOvHr4RbG90vndReaYRGd3UFsebDm1EAo+UHl+V1u7rlSyD5zDsVmzd22I8yyWwSZVl39NHZSzcGYgkEZ2HI0b6MH1UkoFfV0aM1ZGMUgByz4WktFqUpuz0JqJE2hLPXXSVLGKr.NB8A+O3X5x3GS5NZDmYxHXIRuOm2Mu+ie+G0QFgZ7wTSf.J1jSh7FB2Aw3veWo3R3vI3B14mD45VYaFXHW4FK7a3I0XCqLN0XiaLh7nr.8ErjAP659Mh0.bREe6VY3ZVP1Y1TOgTuVcjGbyyELlM7eNraYwX1KGXdQNvreNv7xbf4fbf4U4.yqWJF6k9GEYzdIiCfhAciW.hwcUTnyJtKD8G.NKRGP
      

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

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @d.healey
        last edited by

        @d-healey Maybe you need to escape the \ character? "Button\\d"?

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

          @Christoph-Hart Yep that worked, thanks

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

          1 Reply Last reply Reply Quote 0
          • d.healeyD d.healey marked this topic as a question on
          • d.healeyD d.healey has marked this topic as solved on
          • First post
            Last post

          15

          Online

          1.7k

          Users

          11.8k

          Topics

          102.4k

          Posts