[Solved] Extract a substring after some string in C# [closed]


if all your strings have the same format like Code ---- FullName
you can do it simple-

   string sName = "DA ---- Dear Allowance".Split(new string[]{"----"}, StringSplitOptions.RemoveEmptyEntries)[1].Trim();

6

solved Extract a substring after some string in C# [closed]