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