Hi everyone,
I am looking for some expert advise to get me out of trouble. I am looking for a solution in C# which will allow me to split the below string in the format provided. The String.Split() allows only a single char as a delimiter.So I cannot use that as well.
Original String
"*** MASTER (Supervisor) *** September 23, 1997 at 3:22pm \r\nThis is the first line of text. There will be many more beneath this on so look out.\r\n\r\n*** JON *** December 4, 1995 at 8:49am \r\nPoint your browser to http://support.microsoft.com and visit our Support Services web site for technical assistance, news, and manuals.\r\n\r\n*** JON *** November 29, 1995 at 7:39pm \r\nWe offer support through a network of partners who provide product training, implementation and consulting support.\r\n\r\n\0ls.\r\n\r\n\0"
Format Required
string1 = "MASTER (Supervisor)
string2 = "September 23, 1997 at 3:22pm"
string3 = "This is the first line of text. There will be many more beneath this on so look out."
string4 = "JON"
string5 = "December 4, 1995 at 8:49am
string6 = "Point your browser to http://support.microsoft.com and visit our Support Services web site for technical assistance, news, and manuals."
string7 = "JON"
string8 = "November 29, 1995 at 7:39pm"
string9 = "We offer support through a network of partners who provide product training, implementation and consulting support."
So you see, I need to sort the entire text. Any help in this regard would be highly appreciated.
Have a great day,
Saurabh