get only numbers regex javascript
snippet in javascript

get only numbers regex javascript

user737

var numberPattern = /\d+/g;

'something102asdfkj1948948'.match( numberPattern )