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