what is the best and optimise wayto extract substrings from a specified string.
my primary string is like
string str = \"ACK>
string str = @"ACK AAA0 BBBB1 ";
var matches = Regex.Matches(str, @"(\w+)<\/t>");
Console.WriteLine(matches[1].Groups[1]); // outputs "AAAA1"
Console.WriteLine(matches[2].Groups[1]); // outputs "BBB2"
This assumes that your data are always inside a tag, also you might want to do some error catching in case no matches are found.