Reputation: 1455
I have a string which contains some values as a set.Now as per my requirement i have to parse this string into sets.Here is my string Contents..
14/01/13 09:06AM 502 19 <I>01203851288 0'00 00:00'45 D0
Now i have to parse this string as:
Date: 14/01/13
Time: 09:06AM
Extension: 502
line: 19
Number: <I>01203851288
Ring: 0'00
Span: 00:00'45
CD: D0
So my question is how can i parse the given string into resultant.Can i use substring concept to split the given string...
Upvotes: 1
Views: 134
Reputation: 1047
string str = "14/01/13 09:06AM 502 19 <I>01203851288 0'00 00:00'45 D0";
var strings = str.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
Upvotes: 1