I have this string and I need it split multiple ways.
Pending order
Sell EUR/USD
Price 1.0899
Take profit at 1.0872
Stop loss at 1.0922
From 23:39 18-01-2016 GMT Till 03:39 19-01-2016 GMT
That is the full string i need to split it as such
string SellorBuy = "Sell";
string Price = "1.0889";
string Profit = "1.0872";
string StopLoss = "1.0922";
The Numbers are different every-time but i still need them to be split into there own strings. I have no idea how to go about this. Any help would be greatly appreciated!
What I've tried
string message = messager.TextBody;
message.Replace(Environment.NewLine, "|");
string[] Spliter;
char delimiter = '|';
Spliter = message.Split(delimiter);
It didn't seem to add the "|" to it.