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