Menu

#AnyNewLine

1 post

Feed
1 of 1 post
Stop Trimming \r Off Every Regex Match. .NET 11 Has AnyNewLine
📰
0Read More

Stop Trimming \r Off Every Regex Match. .NET 11 Has AnyNewLine

DEV Community: dotnet·JKC·about 5 hours ago
#0IgU2VaR

.NET 11 adds RegexOptions.AnyNewLine, so ^, $, \Z and . treat \r\n, \r and Unicode line breaks as newlines, not just \n.

15s