My question is: How I can count only numbers from a string, for example if I have:
(55)-555-34 to get output 7, I mean to exclude the dashes and brackets for example. Cheers!
My question is: How I can count only numbers from a string, for example
Share
You could use .match() with
/\d/gRegular Expression: