I need to slip a string in c#. The string looks like this:
string b = "aaaaa-bbbbb-ccccc_ddddd_eeeee";
I want to cut the string in 4 and save the aaaaa in one new string, the bbbbb in another new string, and so on till i have the aaaaa,bbbbb,ccccc,ddddd,eeeee in new string, all separated. Example of wat i want in the end:
string a = "aaaaaaa";
string b = "bbbbbbb";
string a = "ccccccc";
string c = "ddddddd";
string e = "eeeeeee";
ps: i DONT want to store the strings in a array after they are split. I want to store them in NEW string variables.