I have a string of “Please bill 28kg” or sometimes “Bill 28lbs” or many more potential type of string that I would receive.
So now the question is how do I just strip out the numeric characters only from the string.
String - "Bill 28kg"
Expecting outcome - “28”
Do anyone have any idea how to do this? I’ve tried Regex, but not sure how to do it as the output is in list of array.