-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-System.Text.RegularExpressionsbughelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors
Milestone
Description
Reproduce in .NET5.0.
The code below will print the following where False is an error:
False
True
string input = "this string has .digest as a substring";
Regex reC = new(@"[^a-z0-9]etag|[^a-z0-9]digest", RegexOptions.Compiled);
Regex re = new(@"[^a-z0-9]etag|[^a-z0-9]digest");
Console.WriteLine(reC.IsMatch(input));
Console.WriteLine(re.IsMatch(input));
Metadata
Metadata
Assignees
Labels
area-System.Text.RegularExpressionsbughelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors