I have this text: nisi non text600 elit where 600 is added dynamically. How can I get it?
var str = ('nisi non text600 elit').match(/text\d+/);
alert(str);
This alerts text600, how can I alert only 600 without an additional replace of the word text(if that is possible)?
Any help is appreciated, thank you!
1 Answer