I’ve got:
stage.getChildByName("button_1")
button_1
button_2
button_3
button_...
button_15
I could easily create a var XSample to store the number, run for statement, increase +1 XSample and use XSample.toString() with “button_”
But things are going to be a little more complex, so I need to get everything after button_
stage.getChildByName("button_" + everything)
// it could be button_5, button_Ag6, button_0086, button_93 and so on
How can I do that with Regex?
Thanks
Usecase:
Using String.indexOf():
Using Regular Expressions: