Q: How to find a carriage return without a line feed after it with regex pattern? I need to find a carriage return (\r) that doesn't have a line feed (\n) directly after it how would I do this with a regex pattern?

A: What about the following regex with a negative lookahead:
\r(?!\n)


A: This should do the trick: 
 Regex.Match("\rtext\r\ntext.", "\r[^\n]", RegexOptions.Multiline);

