My goal is :
Delete all. except the numbers , but delete the zeros who before numbers 1 to 9
And I have this regex:
var validValue = inputValue.replace(/[^\d]/g, '').replace(/^0*/g, '');
But I want to make it in a one replace()
So how can I do that ?