Splitting of string in c# language
Hello.I have requirement to split the string into array. For better understanding, take a look at below string.
string str1 = "Solve OP1 + OP2 and |*OP1 + OP2*| and find out answer of |*OP1 / OP2*| with correct logic.";
In output, I expect array with below items.
Solve OP1 + OP2 and
|*OP1 + OP2*|
and find out answer of
|*OP1 / OP2*|
with correct logic.
I want to separate out all values within "|* *|" and create array with text which is out of |* *|.
Thanks