Answer the question
In order to leave comments, you need to log in
How to fix a regular expression?
There is a block containing the following class:param-out goTo goTo_1_1_1 goTo_2_1_2
let block = goTo[i].className.animVal.match(/goTo_(\w+)/);
if (block === null)
continue;
console.log(block);
["goTo_1_1_1", "1_1_1", index: 23, input: "fa-icon param-out goTo goTo_1_1_1 goTo_2_1_2"]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question