From 05c56dcbea5e59a41e3af49ab5da065ce787adca Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Sun, 26 Oct 2025 17:30:27 +0000 Subject: [PATCH] Fix RegexOptions.ECMAScript combinations `ECMAScript` can be used in conjunction with `Compiled` according to https://learn.microsoft.com/dotnet/api/system.text.regularexpressions.regexoptions --- docs/standard/base-types/regular-expression-options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/standard/base-types/regular-expression-options.md b/docs/standard/base-types/regular-expression-options.md index 555e1e13515fa..911d9ca8a6c87 100644 --- a/docs/standard/base-types/regular-expression-options.md +++ b/docs/standard/base-types/regular-expression-options.md @@ -333,7 +333,7 @@ By default, the regular expression engine uses canonical behavior when matching > [!NOTE] > ECMAScript-compliant behavior is available only by supplying the value to the `options` parameter of a class constructor or static pattern-matching method. It is not available as an inline option. -The option can be combined only with the and options. The use of any other option in a regular expression results in an . +The option can be combined only with the , , and options. The use of any other option in a regular expression results in an . The behavior of ECMAScript and canonical regular expressions differs in three areas: character class syntax, self-referencing capturing groups, and octal versus backreference interpretation.