I have the following example and need to parse only the numbers from the string:
From:
EG2594
To:
2594
or,
From: EG2594_1
To:
2594
Then I need to add a P to the extracted numbers, so it would end up as:
P2594
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.
Thanks!