From 1e64acb23e1831f6f3da14694e77a01d45e08c9b Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Mon, 16 Mar 2026 21:52:06 -0600 Subject: [PATCH 1/2] Add RegexOptions.AnyNewLine API documentation Add documentation for the new AnyNewLine enum member (value 2048) that makes ^, $, \Z, and . recognize all Unicode newline sequences. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../RegexOptions.xml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/xml/System.Text.RegularExpressions/RegexOptions.xml b/xml/System.Text.RegularExpressions/RegexOptions.xml index f1abe4d2254..3b1975f4e2f 100644 --- a/xml/System.Text.RegularExpressions/RegexOptions.xml +++ b/xml/System.Text.RegularExpressions/RegexOptions.xml @@ -91,6 +91,26 @@ Regular Expression Options + + + + + + + + Field + + System.Text.RegularExpressions + 11.0.0.0 + + + System.Text.RegularExpressions.RegexOptions + + 2048 + + Make ^, $, \Z, and . recognize all common newline sequences (\r\n, \r, \n, and the Unicode newlines \u0085, \u2028, \u2029) instead of only \n. This option cannot be combined with or . For more information, see the "AnyNewLine Mode" section in the Regular Expression Options article. + + From 28498d111ae5e773fd4f59442f56152100ceef10 Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Mon, 16 Mar 2026 22:46:09 -0600 Subject: [PATCH 2/2] Fix: Make -> Makes, add missing conjunction Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- xml/System.Text.RegularExpressions/RegexOptions.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Text.RegularExpressions/RegexOptions.xml b/xml/System.Text.RegularExpressions/RegexOptions.xml index 3b1975f4e2f..360dd0dff2a 100644 --- a/xml/System.Text.RegularExpressions/RegexOptions.xml +++ b/xml/System.Text.RegularExpressions/RegexOptions.xml @@ -108,7 +108,7 @@ 2048 - Make ^, $, \Z, and . recognize all common newline sequences (\r\n, \r, \n, and the Unicode newlines \u0085, \u2028, \u2029) instead of only \n. This option cannot be combined with or . For more information, see the "AnyNewLine Mode" section in the Regular Expression Options article. + Makes ^, $, \Z, and . recognize all common newline sequences (\r\n, \r, \n, and the Unicode newlines \u0085, \u2028, and \u2029) instead of only \n. This option cannot be combined with or . For more information, see the "AnyNewLine Mode" section in the Regular Expression Options article.