📰00Read later0Read MoreStop Trimming \r Off Every Regex Match. .NET 11 Has AnyNewLineDEV Community: dotnet·JKC·about 5 hours ago#0IgU2VaR#devtodotnet#devto#dev#regexoptions#anynewline+4 more🧰Tag tools✨Add tag.NET 11 adds RegexOptions.AnyNewLine, so ^, $, \Z and . treat \r\n, \r and Unicode line breaks as newlines, not just \n.15s