Solved getAllComponents regex doesn't work
-
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
andButton
.const buttons = Content.getAllComponents("Button\d");
Should return
Button1
andButton2
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
-
@d-healey Maybe you need to escape the
\
character?"Button\\d"
? -
@Christoph-Hart Yep that worked, thanks
-
-