Answer the question
In order to leave comments, you need to log in
Why does it only find the first occurrence?
test = 'текст текст<locale>текст в item</locale>текст <locale>текст</locale>';
reg = test.match(/<locale>(.*?)<\/locale>/);
reg.forEach(function(item) {
alert( item );
});
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