I have the following example and need to parse only the numbers from the string:
Then I need to add a P to the extracted numbers, so it would end up as:
as my output.
What is the best, simplest way to do this in unix C?
I am thinking a character array, go through each character one by one in a loop, and comparing it to a list of 0-9.