I have a string User name (sales) and I want to extract the text between the brackets, how would I do this?
I suspect sub-string but I can\'t work out
I came across this while I was looking for a solution to a very similar implementation.
Here is a snippet from my actual code. Starts substring from the first char (index 0).
string separator = "\n"; //line terminator
string output;
string input= "HowAreYou?\nLets go there!";
output = input.Substring(0, input.IndexOf(separator));