[Solved] How to fetch data from string value using C#


string pattern = @”Sales Rep: [A-Za-z]+\s[A-Za-z]+”;
var result = Regex.Match(str, pattern,RegexOptions.Multiline).ToString().Split(‘:’)[1];
MessageBox.Show(result.ToString());

solved How to fetch data from string value using C#