How can I get only the first line of multiline text using regular expressions?
string test = @\"just take this first line even there is
Try this one:
Match m = Regex.Match(test, @".*\n", RegexOptions.Multiline);