I need to find a carriage return (\ r) that does not have a straight line (\ n) immediately after it, how would I do this using the regex pattern?
What about the following regex with a negative representation:
\r(?!\n)
This should do the trick:
Regex.Match("\rtext\r\ntext.", "\r[^\n]", RegexOptions.Multiline);
Source: https://habr.com/ru/post/894572/More articles:timestamp 3 months ago - pythonA new line after the "Evidence" in the evidence environment in the package amsthm - latexIs it valid for decreasing on an empty set of sets? - collectionsWhat type of RDS instance has the best IO: Extra large database instance or Extra large high memory instance - amazon-rdsusing static methods of limited generic type C # - genericsCall Windows Task Manager with the selected Performance tab - c #The easiest javascript library to create custom tabs? - javascriptIs it possible to install mongodb without root privileges? - mongodbstrncpy or strlcpy in my case - cImplementation of proximity matrix for clustering - rAll Articles