I\'m trying to figure out a way to remove all text in a string before match in Regex. I\'m coding this in C#.
For example, if the string is \"hello, test matching\
*Updated, using matchcollection
string test = "hello, test matching"; string regexStrTest; regexStrTest = @"test\s\w+"; MatchCollection m1 = Regex.Matches(test, regexStrTest); //gets the second matched value string value = m1[1].Value;