String of characters given and have to extract digits from it
Created 2 years ago
63
Views
1
Comments
Q. No. 7 in strings category.
Given a string of characters and have to extract digits from it and sum it up individually. Can you give a genery solution without using match or replace function?
Input Example: HR05-AA-2669
Output: 28
//0+5+2+6+6+9=28