44 references to ExplicitCapture
Aspire.Dashboard (2)
ConsoleLogs\UrlParser.cs (1)
72RegexOptions.IgnoreCase | RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture)]
src\Shared\ConsoleLogs\TimestampParser.cs (1)
70RegexOptions.ExplicitCapture | RegexOptions.CultureInvariant | RegexOptions.IgnorePatternWhitespace)]
Aspire.Hosting (2)
Dashboard\DashboardService.cs (1)
32[GeneratedRegex("""^(?<name>.+?)\.?AppHost$""", RegexOptions.ExplicitCapture | RegexOptions.IgnoreCase | RegexOptions.Singleline | RegexOptions.CultureInvariant)]
src\Shared\ConsoleLogs\TimestampParser.cs (1)
70RegexOptions.ExplicitCapture | RegexOptions.CultureInvariant | RegexOptions.IgnorePatternWhitespace)]
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\EmbeddedLanguageCommentDetector.cs (1)
30RegexOptions.ExplicitCapture | RegexOptions.IgnoreCase | RegexOptions.Compiled);
Microsoft.Build (4)
Evaluation\Expander.cs (2)
3102RegexOptions.IgnorePatternWhitespace | RegexOptions.ExplicitCapture | RegexOptions.Compiled)); 3130RegexOptions.IgnorePatternWhitespace | RegexOptions.ExplicitCapture | RegexOptions.Compiled));
ProjectWriter.cs (2)
48RegexOptions.IgnorePatternWhitespace | RegexOptions.ExplicitCapture | RegexOptions.Compiled)); 64RegexOptions.IgnorePatternWhitespace | RegexOptions.ExplicitCapture | RegexOptions.Compiled));
Microsoft.Build.Engine.UnitTests (4)
Evaluation\ExpressionShredder_Tests.cs (4)
1206private static readonly Regex s_itemVectorPattern = new Regex(itemVectorSpecification, RegexOptions.IgnorePatternWhitespace | RegexOptions.ExplicitCapture); 1214RegexOptions.IgnorePatternWhitespace | RegexOptions.ExplicitCapture); 1227private static readonly Regex s_itemMetadataPattern = new Regex(itemMetadataSpecification, RegexOptions.IgnorePatternWhitespace | RegexOptions.ExplicitCapture); 1239RegexOptions.IgnorePatternWhitespace | RegexOptions.ExplicitCapture);
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (15)
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_BasicTests.cs (15)
16110""", RegexOptions.ExplicitCapture); 16141""", RegexOptions.ExplicitCapture); 16177""", RegexOptions.ExplicitCapture); 16363""", RegexOptions.ExplicitCapture); 16410""", RegexOptions.ExplicitCapture); 16457""", RegexOptions.ExplicitCapture); 16639""", RegexOptions.ExplicitCapture); 16686""", RegexOptions.ExplicitCapture); 16731""", RegexOptions.ExplicitCapture); 16829""", RegexOptions.ExplicitCapture); 16927""", RegexOptions.ExplicitCapture); 17023""", RegexOptions.ExplicitCapture); 17119""", RegexOptions.ExplicitCapture); 17221""", RegexOptions.ExplicitCapture); 17327""", RegexOptions.ExplicitCapture);
Microsoft.CodeAnalysis.Features (3)
EmbeddedLanguages\EmbeddedLanguageCommentDetector.cs (1)
29RegexOptions.ExplicitCapture | RegexOptions.IgnoreCase | RegexOptions.Compiled);
EmbeddedLanguages\RegularExpressions\RegexParser.CaptureInfoAnalyzer.cs (1)
151if (HasOption(options, RegexOptions.ExplicitCapture))
EmbeddedLanguages\RegularExpressions\RegexParser.cs (1)
1210case 'n': case 'N': return RegexOptions.ExplicitCapture;
System.Data.Common (4)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (3)
54[GeneratedRegex(ConnectionStringPattern, RegexOptions.ExplicitCapture)] 57[GeneratedRegex(ConnectionStringPatternOdbc, RegexOptions.ExplicitCapture)] 75[GeneratedRegex("^\\{([^\\}\u0000]|\\}\\})*\\}$", RegexOptions.ExplicitCapture)]
System\Data\Common\DBCommandBuilder.cs (1)
47_parameterNameParser = new Regex(_dbCommandBuilder.ParameterNamePattern!, RegexOptions.ExplicitCapture | RegexOptions.Singleline);
System.Data.Odbc (3)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (3)
54[GeneratedRegex(ConnectionStringPattern, RegexOptions.ExplicitCapture)] 57[GeneratedRegex(ConnectionStringPatternOdbc, RegexOptions.ExplicitCapture)] 75[GeneratedRegex("^\\{([^\\}\u0000]|\\}\\})*\\}$", RegexOptions.ExplicitCapture)]
System.Private.Xml (1)
System\Xml\Schema\FacetChecker.cs (1)
1344[GeneratedRegex("^([a-zA-Z]{1,8})(-[a-zA-Z0-9]{1,8})*$", RegexOptions.ExplicitCapture)]
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\RegexNode.cs (1)
2880if ((Options & RegexOptions.ExplicitCapture) != 0) sb.Append("-C");
System\Text\RegularExpressions\RegexParser.cs (3)
756if ((_options & RegexOptions.ExplicitCapture) != 0 || _ignoreNextParen) 1551'n' => RegexOptions.ExplicitCapture, 1773if ((_options & RegexOptions.ExplicitCapture) == 0 && !_ignoreNextParen)
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
47private static readonly Regex s_msbuildPropertyRegex = new Regex(@"[\$][\(](?<name>.*?)[\)]", RegexOptions.ExplicitCapture);