JavaScript RegEx How to match only numbers seperetad by non-numeric characters? -


i'm beginner in javascript. , have problem in regex.

var string="find mean, median, mode of following data. concatenate 3 averages , data values @ positions 176 , 345." var pos=string.match(). 

how save "values @ positions 176 , 345" numbers in text pos using regex?

var string="find mean, median, mode of following data. concatenate 3 averages , data values @ positions 176 , 345."  var pos=string.match(/\b\d+\b/g);  console.log(pos);

this store numbers in array pos


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -