I’m trying to manipulate a string..
For example:
string DiagnosesString "250.00 03 350.0001 450.00 01 550.00 02";
Output
250.00
350.00
450.00
550.00
I tried to use a Split method. As you can see on my example in 350.0001 and its output is 350.00.
I can removed 03 , 02 , etc..
Question:
1.) How I will removed the o1 of 350.0001 get only 350.00?
here’s my code:
string DiagnosisCodestemp = DiagnosesString.Replace(" 01 ", " ").Replace(" 02 ", " ").Replace(" 03 ", " ").Replace(" 04 ", " ").Replace(" 05 ", " ").Replace(" 06 ", " ").Replace(" 07 ", " ");
string[] DiagnosisCodesParts = DiagnosisCodestemp.Split();
List list = new List();
o/p : 250.00 350.00 450.00 550.00