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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -