regex match only numbers and store it js code example
Example: get only numbers regex javascript
var numberPattern = /\d+/g;
'something102asdfkj1948948'.match( numberPattern )
var numberPattern = /\d+/g;
'something102asdfkj1948948'.match( numberPattern )