From 86175b5029cd300326c54b2c7085577569131fd0 Mon Sep 17 00:00:00 2001 From: Levi Broderick Date: Tue, 7 Jul 2026 15:15:05 -0700 Subject: [PATCH] Remove duplicate / misleading untrusted input warnings --- xml/System.Text.RegularExpressions/Regex.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/xml/System.Text.RegularExpressions/Regex.xml b/xml/System.Text.RegularExpressions/Regex.xml index 75c638e44fc..36a35c921d2 100644 --- a/xml/System.Text.RegularExpressions/Regex.xml +++ b/xml/System.Text.RegularExpressions/Regex.xml @@ -199,9 +199,6 @@ ## Remarks -> [!WARNING] -> When using to process untrusted input, pass a [time-out value](/dotnet/standard/base-types/best-practices-regex#use-time-out-values) to prevent malicious users from causing a [denial-of-service attack](https://www.cisa.gov/news-events/news/understanding-denial-service-attacks). A time-out value specifies how long a pattern-matching method should try to find a match before it times out. - The `pattern` parameter consists of regular expression language elements that symbolically describe the string to match. For more information about regular expressions, see the [.NET Regular Expressions](/dotnet/standard/base-types/regular-expressions) and [Regular Expression Language - Quick Reference](/dotnet/standard/base-types/regular-expression-language-quick-reference) topics. Calling the constructor is equivalent to calling the constructor with a value of for the `options` argument. @@ -347,9 +344,6 @@ ## Remarks -> [!WARNING] -> When using to process untrusted input, pass a [time-out value](/dotnet/standard/base-types/best-practices-regex#use-time-out-values) to prevent malicious users from causing a [denial-of-service attack](https://www.cisa.gov/news-events/news/understanding-denial-service-attacks). A time-out value specifies how long a pattern-matching method should try to find a match before it times out. - The `pattern` parameter consists of regular expression language elements that symbolically describe the string to match. For more information about regular expressions, see the [.NET Regular Expressions](/dotnet/standard/base-types/regular-expressions) and [Regular Expression Language - Quick Reference](/dotnet/standard/base-types/regular-expression-language-quick-reference) topics. A object is immutable, which means that it can be used only for the match parameters you define when you create it. However, it can be used any number of times without being recompiled.