1 override of Groups
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\Match.cs (1)
386public override GroupCollection Groups => _groupcoll ??= new GroupCollection(this, _caps);
478 references to Groups
Aspire.EndToEnd.Tests (3)
tests\Shared\WorkloadTesting\AspireProject.cs (3)
124if (matches[0].Groups["tfm"].Value != tfmToUseString) 126throw new XunitException($"Expected to find {tfmToUseString} but found '{matches[0].Groups["tfm"].Value}' in {csprojPath}: {csprojContent}"); 197DashboardUrl = m.Groups["url"].Value;
Aspire.Hosting (1)
Dashboard\DashboardService.cs (1)
48Match { Success: true } match => match.Groups["name"].Value,
Aspire.Microsoft.Data.SqlClient (10)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (10)
177string serverHostName = match.Groups[2].Value; 189string maybeProtocol = match.Groups[1].Value; 195string pipeName = match.Groups[3].Value; 201instanceName = namedInstancePipeMatch.Groups[1].Value; 222if (match.Groups[4].Length > 0) 224instanceName = match.Groups[3].Value; 225port = match.Groups[4].Value; 231else if (int.TryParse(match.Groups[3].Value, out int parsedPort)) 233port = parsedPort == 1433 ? null : match.Groups[3].Value; 238instanceName = match.Groups[3].Value;
Aspire.Microsoft.EntityFrameworkCore.SqlServer (10)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (10)
177string serverHostName = match.Groups[2].Value; 189string maybeProtocol = match.Groups[1].Value; 195string pipeName = match.Groups[3].Value; 201instanceName = namedInstancePipeMatch.Groups[1].Value; 222if (match.Groups[4].Length > 0) 224instanceName = match.Groups[3].Value; 225port = match.Groups[4].Value; 231else if (int.TryParse(match.Groups[3].Value, out int parsedPort)) 233port = parsedPort == 1433 ? null : match.Groups[3].Value; 238instanceName = match.Groups[3].Value;
Aspire.Workload.Tests (4)
BuildAndRunTemplateTests.cs (1)
90return match.Groups[1].Value;
tests\Shared\WorkloadTesting\AspireProject.cs (3)
124if (matches[0].Groups["tfm"].Value != tfmToUseString) 126throw new XunitException($"Expected to find {tfmToUseString} but found '{matches[0].Groups["tfm"].Value}' in {csprojPath}: {csprojContent}"); 197DashboardUrl = m.Groups["url"].Value;
BuildBoss (1)
CompilerNuGetCheckerUtil.cs (1)
114var packageId = match.Groups[1].Value;
dotnet-dev-certs (3)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
dotnet-svcutil-lib (10)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (6)
580ce.FileName = m.Groups[2].Value; 581ce.Line = int.Parse(m.Groups[4].Value, CultureInfo.InvariantCulture); 582ce.Column = int.Parse(m.Groups[5].Value, CultureInfo.InvariantCulture); 584if (string.Compare(m.Groups[full ? 6 : 1].Value, "warning", StringComparison.OrdinalIgnoreCase) == 0) 588ce.ErrorNumber = m.Groups[full ? 7 : 2].Value; 589ce.ErrorText = m.Groups[full ? 8 : 3].Value;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (4)
69object varA = ILG.GetVariable(match.Groups["a"].Value); 71object varIA = ILG.GetVariable(match.Groups["ia"].Value); 192Debug.Assert(match.Groups["arg"].Value == Arg); 193Debug.Assert(match.Groups["cast"].Value == CodeIdentifier.GetCSharpName(Type));
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (3)
323var processId = int.Parse(processIdMatch.Groups[1].Value, CultureInfo.InvariantCulture); 359var time = DateTime.Parse(prefixMatch.Groups[1].Value, CultureInfo.InvariantCulture).ToUniversalTime(); 360var prefixProcessId = int.Parse(prefixMatch.Groups[2].Value, CultureInfo.InvariantCulture);
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (3)
323var processId = int.Parse(processIdMatch.Groups[1].Value, CultureInfo.InvariantCulture); 359var time = DateTime.Parse(prefixMatch.Groups[1].Value, CultureInfo.InvariantCulture).ToUniversalTime(); 360var prefixProcessId = int.Parse(prefixMatch.Groups[2].Value, CultureInfo.InvariantCulture);
installer.tasks (1)
StaticFileRegeneration\TpnSectionHeader.cs (1)
162Name = numberListMatch.Groups["name"].Value,
InteropTests (1)
Helpers\WebsiteProcess.cs (1)
72ServerPort = m.Groups["port"].Value;
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\Infrastructure\EmbeddedLanguageCommentDetector.cs (2)
46identifier = match.Groups["identifier"].Value; 47var optionGroup = match.Groups["option"];
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (1)
144var name = namedSpanStartMatch.Groups[1].Value;
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (10)
UserJwtsTests.cs (10)
114var id = matches.SingleOrDefault().Groups[1].Value; 148var id = matches.SingleOrDefault().Groups[1].Value; 293var id = matches.SingleOrDefault().Groups[1].Value; 312var id = matches.SingleOrDefault().Groups[1].Value; 332var id = matches.SingleOrDefault().Groups[1].Value; 353var id = matches.SingleOrDefault().Groups[1].Value; 475var id = matches.SingleOrDefault().Groups[1].Value; 568var key = printMatches.SingleOrDefault().Groups[1].Value; 573var resetKey = resetMatches.SingleOrDefault().Groups[1].Value; 594var key = printMatches.SingleOrDefault().Groups[1].Value;
Microsoft.AspNetCore.Components.Endpoints.Tests (34)
EndpointHtmlRendererTest.cs (34)
64var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 87var preamble = match.Groups["preamble"].Value; 94var prerenderedContent = match.Groups["content"].Value; 97var epilogue = match.Groups["epilogue"].Value; 130var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 167var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 202var preamble = match.Groups["preamble"].Value; 218var prerenderedContent = match.Groups["content"].Value; 221var epilogue = match.Groups["epilogue"].Value; 251var preamble = match.Groups["preamble"].Value; 266var prerenderedContent = match.Groups["content"].Value; 269var epilogue = match.Groups["epilogue"].Value; 310var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 342var preamble = match.Groups["preamble"].Value; 357var prerenderedContent = match.Groups["content"].Value; 360var epilogue = match.Groups["epilogue"].Value; 407var preamble = firstMatch.Groups["preamble"].Value; 418var marker = secondMatch.Groups[1].Value; 461var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 500var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 539var preamble = match.Groups["preamble"].Value; 563var prerenderedContent = match.Groups["content"].Value; 566var epilogue = match.Groups["epilogue"].Value; 590var preamble = match.Groups["preamble"].Value; 614var prerenderedContent = match.Groups["content"].Value; 617var epilogue = match.Groups["epilogue"].Value; 1071var markerText = serverMarkerMatch.Groups[1].Value; 1072var innerHtml = serverMarkerMatch.Groups[2].Value; 1101var markerText = serverNonPrerenderedMarkerMatch.Groups[1].Value; 1128var markerText = webAssemblyMarkerMatch.Groups[1].Value; 1129var innerHtml = webAssemblyMarkerMatch.Groups[2].Value; 1142var markerText = webAssemblyNonPrerenderedMarkerMatch.Groups[1].Value; 1172var preamble = match.Groups["preamble"].Value; 1177var prerenderedContent = match.Groups["content"].Value;
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
DebugProxyLauncher.cs (2)
219capturedUrl = matchFirefox.Groups["url"].Value; 226capturedUrl = match.Groups["url"].Value;
Microsoft.AspNetCore.DataProtection.Tests (5)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (5)
32int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_CBC$").Groups["keyLength"].Value, CultureInfo.InvariantCulture); 33string hashAlgorithm = Regex.Match(validationAlgorithm.ToString(), @"^HMAC(?<hashAlgorithm>.*)$").Groups["hashAlgorithm"].Value; 60int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_GCM$").Groups["keyLength"].Value, CultureInfo.InvariantCulture); 86int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_GCM$").Groups["keyLength"].Value, CultureInfo.InvariantCulture); 123int keyLengthInBits = Int32.Parse(Regex.Match(encryptionAlgorithm.ToString(), @"^AES_(?<keyLength>\d{3})_CBC$").Groups["keyLength"].Value, CultureInfo.InvariantCulture);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (3)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (6)
69var dateTime = match.Groups["datetime"].Value; 70var subseconds = match.Groups["subseconds"].Value; 71var offset = match.Groups["offset"].Value; 184var sign = match.Groups["sign"].Value; 185var secondsText = match.Groups["int"].Value; 191var subseconds = match.Groups["subseconds"].Value;
Microsoft.AspNetCore.Grpc.Swagger (6)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (6)
69var dateTime = match.Groups["datetime"].Value; 70var subseconds = match.Groups["subseconds"].Value; 71var offset = match.Groups["offset"].Value; 184var sign = match.Groups["sign"].Value; 185var secondsText = match.Groups["int"].Value; 191var subseconds = match.Groups["subseconds"].Value;
Microsoft.AspNetCore.Identity.FunctionalTests (4)
MapIdentityApiTests.cs (4)
1363Assert.Equal(2, confirmationMatch.Groups.Count); 1365var url = WebUtility.HtmlDecode(confirmationMatch.Groups[1].Value); 1375Assert.Equal(2, confirmationMatch.Groups.Count); 1377return WebUtility.HtmlDecode(confirmationMatch.Groups[1].Value);
Microsoft.AspNetCore.Rewrite (1)
UrlMatches\RegexMatch.cs (1)
21return new MatchResults(success: res.Success != Negate, new BackReferenceCollection(res.Groups));
Microsoft.AspNetCore.Rewrite.Tests (8)
IISUrlRewrite\InputParserTests.cs (4)
168return new BackReferenceCollection(match.Groups); 174return new BackReferenceCollection(match.Groups); 180return new MatchResults(match.Success, new BackReferenceCollection(match.Groups)); 186return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
IISUrlRewrite\ServerVariableTests.cs (2)
162return new MatchResults(match.Success, new BackReferenceCollection(match.Groups)); 168return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
PatternSegments\ConditionMatchSegmentTests.cs (1)
32return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
PatternSegments\RuleMatchSegmentTests.cs (1)
31return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\SelfHostDeployer.cs (1)
158actualUrl = new Uri(m.Groups["url"].Value);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
214url = new Uri(m.Groups["url"].Value);
Microsoft.AspNetCore.Server.Kestrel.Core (3)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
Microsoft.AspNetCore.SpaServices.Extensions (1)
AngularCli\AngularCliMiddleware.cs (1)
88var uri = new Uri(openBrowserLine.Groups[1].Value);
Microsoft.Build (56)
BuildCheck\Infrastructure\EditorConfig\EditorConfigFile.cs (5)
99if (sectionMatches.Count > 0 && sectionMatches[0].Groups.Count > 0) 103var sectionName = sectionMatches[0].Groups[1].Value; 112if (propMatches.Count > 0 && propMatches[0].Groups.Count > 1) 114var key = propMatches[0].Groups[1].Value.ToLower(); 115var value = propMatches[0].Groups[2].Value;
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (2)
54Debug.Assert(match.Groups.Count - 1 == _numberRangePairs.Length); 59if (!int.TryParse(match.Groups[i + 1].Value, out int matchedNum) ||
CanonicalError.cs (24)
301category = match.Groups["CATEGORY"].Value.Trim(); 315parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 316parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 317parsedMessage.text = (match.Groups["TEXT"].Value + messageOverflow).Trim(); 318parsedMessage.origin = match.Groups["FILENAME"].Value.Trim(); 333string origin = match.Groups["ORIGIN"].Value.Trim(); 334category = match.Groups["CATEGORY"].Value.Trim(); 335parsedMessage.code = match.Groups["CODE"].Value.Trim(); 336parsedMessage.text = (match.Groups["TEXT"].Value + messageOverflow).Trim(); 337parsedMessage.subcategory = match.Groups["SUBCATEGORY"].Value.Trim(); 363string location = match.Groups["LOCATION"].Value.Trim(); 364parsedMessage.origin = match.Groups["FILENAME"].Value.Trim(); 379parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 386parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 387parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 394parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 395parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 402parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 403parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 404parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim()); 411parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 412parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 413parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 414parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim());
Construction\Solution\SolutionFile.cs (9)
1059string referenceGuid = match.Groups["PROPERTYNAME"].Value.Trim(); 1077string propertyName = match.Groups["PROPERTYNAME"].Value.Trim(); 1078string propertyValue = match.Groups["PROPERTYVALUE"].Value.Trim(); 1509string projectTypeGuid = match.Groups["PROJECTTYPEGUID"].Value.Trim(); 1510proj.ProjectName = match.Groups["PROJECTNAME"].Value.Trim(); 1511proj.RelativePath = match.Groups["RELATIVEPATH"].Value.Trim(); 1512proj.ProjectGuid = match.Groups["PROJECTGUID"].Value.Trim(); 1609string projectGuid = match.Groups["PROPERTYNAME"].Value.Trim(); 1610string parentProjectGuid = match.Groups["PROPERTYVALUE"].Value.Trim();
DebugUtils.cs (1)
78var nodeMode = match.Groups["nodemode"].Value;
Evaluation\Expander.cs (5)
1079string metadataName = itemMetadataMatch.Groups[RegularExpressions.NameGroup].Value; 1083if (itemMetadataMatch.Groups[RegularExpressions.ItemSpecificationGroup].Length > 0) 1085itemType = itemMetadataMatch.Groups[RegularExpressions.ItemTypeGroup].Value; 3053string name = match.Groups[RegularExpressions.NameGroup].Value; 3055ProjectErrorUtilities.VerifyThrowInvalidProject(match.Groups[RegularExpressions.ItemSpecificationGroup].Length == 0, _elementLocation, "QualifiedMetadataInTransformNotAllowed", match.Value, name);
Evaluation\IntrinsicFunctions.cs (2)
284if (m.Success && m.Groups.Count >= 1 && valueName.Equals("InstallRoot", StringComparison.OrdinalIgnoreCase)) 286return Path.Combine(NativeMethodsShared.FrameworkBasePath, m.Groups[0].Value) + Path.DirectorySeparatorChar;
FileMatcher.cs (2)
1872wildcardDirectoryPart = match.Groups["WILDCARDDIR"].Value; 1873filenamePart = match.Groups["FILENAME"].Value;
ProjectWriter.cs (6)
158base.WriteString(itemVectorTransform.Groups["PREFIX"].Value); 159base.WriteString(itemVectorTransform.Groups["TYPE"].Value); 160base.WriteRaw(itemVectorTransform.Groups["ARROW"].Value); 161base.WriteString(itemVectorTransform.Groups["TRANSFORM"].Value); 162base.WriteString(itemVectorTransform.Groups["SEPARATOR_SPECIFICATION"].Value); 163base.WriteString(itemVectorTransform.Groups["SUFFIX"].Value);
Microsoft.Build.CommandLine.UnitTests (1)
MSBuildServer_Tests.cs (1)
348return int.Parse(match.Groups[1].Value);
Microsoft.Build.Engine.OM.UnitTests (1)
DebugUtils.cs (1)
78var nodeMode = match.Groups["nodemode"].Value;
Microsoft.Build.Engine.UnitTests (5)
Evaluation\ExpressionShredder_Tests.cs (5)
612Group transformGroup = match.Groups["TRANSFORM"]; 1128result.Add(itemVector.Groups["TYPE"].Value); 1171string metadataName = embeddedMetadataReference.Groups["NAME"].Value; 1176if (embeddedMetadataReference.Groups["ITEM_SPECIFICATION"].Length > 0) 1178itemName = embeddedMetadataReference.Groups["TYPE"].Value;
Microsoft.Build.Tasks.CodeAnalysis (19)
CanonicalError.cs (19)
308string origin = match.Groups["ORIGIN"].Value.Trim(); 309string category = match.Groups["CATEGORY"].Value.Trim(); 310parsedMessage.code = match.Groups["CODE"].Value.Trim(); 311parsedMessage.text = (match.Groups["TEXT"].Value + messageOverflow).Trim(); 312parsedMessage.subcategory = match.Groups["SUBCATEGORY"].Value.Trim(); 338string location = match.Groups["LOCATION"].Value.Trim(); 339parsedMessage.origin = match.Groups["FILENAME"].Value.Trim(); 354parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 361parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 362parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 369parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 370parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 377parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 378parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 379parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim()); 386parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 387parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 388parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 389parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim());
Microsoft.Build.Tasks.Core (39)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (2)
105_targetRuntimeVersion = match.Groups["TARGETRUNTIMEVERSION"].Value.Trim(); 106_assemblyFolderConfigFile = match.Groups["ASSEMBLYFOLDERCONFIGFILE"].Value.Trim();
CanonicalError.cs (24)
301category = match.Groups["CATEGORY"].Value.Trim(); 315parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 316parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 317parsedMessage.text = (match.Groups["TEXT"].Value + messageOverflow).Trim(); 318parsedMessage.origin = match.Groups["FILENAME"].Value.Trim(); 333string origin = match.Groups["ORIGIN"].Value.Trim(); 334category = match.Groups["CATEGORY"].Value.Trim(); 335parsedMessage.code = match.Groups["CODE"].Value.Trim(); 336parsedMessage.text = (match.Groups["TEXT"].Value + messageOverflow).Trim(); 337parsedMessage.subcategory = match.Groups["SUBCATEGORY"].Value.Trim(); 363string location = match.Groups["LOCATION"].Value.Trim(); 364parsedMessage.origin = match.Groups["FILENAME"].Value.Trim(); 379parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 386parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 387parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 394parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 395parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 402parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 403parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 404parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim()); 411parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 412parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 413parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 414parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim());
DebugUtils.cs (1)
78var nodeMode = match.Groups["nodemode"].Value;
FileMatcher.cs (2)
1872wildcardDirectoryPart = match.Groups["WILDCARDDIR"].Value; 1873filenamePart = match.Groups["FILENAME"].Value;
FindInvalidProjectReferences.cs (2)
123platformIdentity = match.Groups[PlatformSimpleNameGroup].Value.Trim(); 125string rawVersion = match.Groups[PlatformVersionGroup].Value.Trim();
NativeMethods.cs (6)
1398match.Groups[2].Value) 1400match.Groups[2].Value) 1403if (!string.IsNullOrEmpty(match.Groups[1].Value)) 1405name.Version = new Version(match.Groups[1].Value); 1407if (!string.IsNullOrWhiteSpace(match.Groups[3].Value)) 1409var value = match.Groups[3].Value;
ResolveSDKReference.cs (2)
585sdkSimpleName = match.Groups[SDKsimpleNameGroup].Value.Trim(); 587rawSdkVersion = match.Groups[SDKVersionGroup].Value.Trim();
Microsoft.Build.Utilities.Core (27)
CanonicalError.cs (24)
301category = match.Groups["CATEGORY"].Value.Trim(); 315parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 316parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 317parsedMessage.text = (match.Groups["TEXT"].Value + messageOverflow).Trim(); 318parsedMessage.origin = match.Groups["FILENAME"].Value.Trim(); 333string origin = match.Groups["ORIGIN"].Value.Trim(); 334category = match.Groups["CATEGORY"].Value.Trim(); 335parsedMessage.code = match.Groups["CODE"].Value.Trim(); 336parsedMessage.text = (match.Groups["TEXT"].Value + messageOverflow).Trim(); 337parsedMessage.subcategory = match.Groups["SUBCATEGORY"].Value.Trim(); 363string location = match.Groups["LOCATION"].Value.Trim(); 364parsedMessage.origin = match.Groups["FILENAME"].Value.Trim(); 379parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 386parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 387parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 394parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 395parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 402parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 403parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 404parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim()); 411parsedMessage.line = ConvertToIntWithDefault(match.Groups["LINE"].Value.Trim()); 412parsedMessage.column = ConvertToIntWithDefault(match.Groups["COLUMN"].Value.Trim()); 413parsedMessage.endLine = ConvertToIntWithDefault(match.Groups["ENDLINE"].Value.Trim()); 414parsedMessage.endColumn = ConvertToIntWithDefault(match.Groups["ENDCOLUMN"].Value.Trim());
DebugUtils.cs (1)
78var nodeMode = match.Groups["nodemode"].Value;
FileMatcher.cs (2)
1872wildcardDirectoryPart = match.Groups["WILDCARDDIR"].Value; 1873filenamePart = match.Groups["FILENAME"].Value;
Microsoft.CodeAnalysis (7)
CommandLine\AnalyzerConfig.cs (5)
222if (sectionMatches.Count > 0 && sectionMatches[0].Groups.Count > 0) 226var sectionName = sectionMatches[0].Groups[1].Value; 236if (propMatches.Count > 0 && propMatches[0].Groups.Count > 1) 238var key = propMatches[0].Groups[1].Value; 239var value = propMatches[0].Groups[2].Value;
CommandLine\AnalyzerConfig.SectionNameMatching.cs (2)
49Debug.Assert(match.Groups.Count - 1 == _numberRangePairs.Length); 54if (!int.TryParse(match.Groups[i + 1].Value, out int matchedNum) ||
Microsoft.CodeAnalysis.CodeStyle (14)
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
347var textInsideBrackets = match.Groups[1].Value;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (5)
69if (sectionMatches is [{ Groups.Count: > 0 }, ..]) 72var sectionName = sectionMatches[0].Groups[1].Value; 84if (propMatches is [{ Groups.Count: > 1 }, ..]) 86var key = propMatches[0].Groups[1].Value; 87var value = propMatches[0].Groups[2].Value;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (8)
138if (singleMatch.Groups.Count == 2) 140var innerText = singleMatch.Groups[1].Value; 182if (singleMatch.Groups.Count == 2) 184var innerText = singleMatch.Groups[1].Value; 225if (singleMatch.Groups.Count == 2) 227var innerText = singleMatch.Groups[1].Value; 313Debug.Assert(match.Groups.Count - 1 == _numberRangePairs.Length); 318if (!int.TryParse(match.Groups[i + 1].Value, out var matchedNum) ||
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Synthesized\GeneratedNameParser.cs (1)
217if (s_fileTypeOrdinalPattern.Match(generatedName) is Match { Success: true, Groups: var groups, Index: var index, Length: var length })
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (2)
2574Assert.True(long.TryParse(m.Groups[1].Value, NumberStyles.HexNumber, null, out long rva), $"Expected {m.Value} to parse as hex long."); 2689string[] actual = Regex.Matches(il, @"\.class nested assembly explicit ansi sealed '([^']*?)'").Cast<Match>().Select(m => m.Groups[1].Value).ToArray();
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (1)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (1)
217if (s_fileTypeOrdinalPattern.Match(generatedName) is Match { Success: true, Groups: var groups, Index: var index, Length: var length })
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (1)
144if (match.Success && match.Groups["key"].Value is string isolatedKey &&
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (2)
177var groups = s_optionEntryPattern.Match(curLineText).Groups; 245var groups = s_headerPattern.Match(curLineText.Trim()).Groups;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Semantics\SpeculationAnalyzerTestsBase.cs (2)
33var initialExpression = initialMatch.Groups["content"].Value; 35var initialTree = Parse(UnderTestRegex.Replace(code, m => m.Groups["content"].Value));
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (1)
217if (s_fileTypeOrdinalPattern.Match(generatedName) is Match { Success: true, Groups: var groups, Index: var index, Length: var length })
Microsoft.CodeAnalysis.Features (7)
CodeFixes\Configuration\ConfigurationUpdater.cs (4)
373parts = (optionName: match.Groups[1].Value.Trim(), 374optionValue: match.Groups[2].Value.Trim()); 456var groups = s_optionEntryPattern.Match(curLineText).Groups; 567var groups = s_headerPattern.Match(curLineText.Trim()).Groups;
EmbeddedLanguages\EmbeddedLanguageCommentDetector.cs (2)
43identifier = match.Groups["identifier"].Value; 45var optionGroup = match.Groups["option"];
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
347var textInsideBrackets = match.Groups[1].Value;
Microsoft.CodeAnalysis.Features.Test.Utilities (8)
EditAndContinue\SourceMarkers.cs (8)
41=> from ids in match.Groups["Id"].Value.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries) 52if (match.Groups["Name"].Value != tagName) 57var isStartingTag = match.Groups["IsEnd"].Value == "" || match.Groups["IsStartAndEnd"].Value != ""; 58var isEndingTag = match.Groups["IsEnd"].Value != "" || match.Groups["IsStartAndEnd"].Value != ""; 100var span = matches[i].Groups["TrackingStatement"]; 121var exceptionRegion = matches[i].Groups["ExceptionRegion"];
Microsoft.CodeAnalysis.Test.Utilities (11)
CompilationVerifier.cs (2)
213return s_codeSizeCommentsRegex.Replace(output, match => match.Groups[0].Value.Replace(match.Groups[1].Value, ""));
Diagnostics\DiagnosticDescription.cs (3)
476var fmtSpecifier = match.Groups.Count > 1 && match.Groups[1].Success ? match.Groups[1].Value : "";
MarkedSource\MarkupTestFile.cs (1)
146var name = namedSpanStartMatch.Groups[1].Value;
MarkedSource\SourceWithMarkedNodes.cs (5)
56var tagName = match.Groups["TagName"]; 57var markedSyntax = match.Groups["MarkedSyntax"]; 58var syntaxKindOpt = match.Groups["SyntaxKind"].Value; 59var idOpt = match.Groups["Id"].Value; 61var parentIdOpt = match.Groups["ParentId"].Value;
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\CodeGenVBCore.vb (1)
3210Dim captures = matches(matches.Count - 1).Groups(1).Captures
Microsoft.CodeAnalysis.Workspaces (15)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (5)
69if (sectionMatches is [{ Groups.Count: > 0 }, ..]) 72var sectionName = sectionMatches[0].Groups[1].Value; 84if (propMatches is [{ Groups.Count: > 1 }, ..]) 86var key = propMatches[0].Groups[1].Value; 87var value = propMatches[0].Groups[2].Value;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (8)
138if (singleMatch.Groups.Count == 2) 140var innerText = singleMatch.Groups[1].Value; 182if (singleMatch.Groups.Count == 2) 184var innerText = singleMatch.Groups[1].Value; 225if (singleMatch.Groups.Count == 2) 227var innerText = singleMatch.Groups[1].Value; 313Debug.Assert(match.Groups.Count - 1 == _numberRangePairs.Length); 318if (!int.TryParse(match.Groups[i + 1].Value, out var matchedNum) ||
Workspace\Solution\ProjectInfo.cs (2)
529return match.Success ? (match.Groups["name"].Value, match.Groups["flavor"].Value) : default;
Microsoft.DotNet.Arcade.Sdk (3)
src\CheckRequiredDotNetVersion.cs (1)
89var minSdkVersionStr = match.Groups[1].Value;
src\GenerateResxSource.cs (1)
507.Select(m => m.Groups[1].Value)
src\LocateDotNet.cs (1)
68var sdkVersion = match.Groups[1].Value;
Microsoft.DotNet.Build.Tasks.Feed (12)
src\BlobFeedAction.cs (5)
46AccountName = m.Groups["accountname"].Value; 47ContainerName = m.Groups["containername"].Value; 48RelativePath = m.Groups["relativepath"].Value; 50feedUrl = m.Groups["feedurl"].Value; 51hasToken = !string.IsNullOrEmpty(m.Groups["token"].Value);
src\BlobUrlInfo.cs (4)
44AccountName = hostNameMatch.Groups["accountname"].Value; 45Endpoint = hostNameMatch.Groups["endpoint"].Value; 57ContainerName = containerAndBlobMatch.Groups["containername"].Value; 58BlobPath = containerAndBlobMatch.Groups["blobpath"].Value;
src\BuildModelFactory.cs (1)
287string replacementUri = $"{Regex.Unescape(AzureDevOpsHostPattern)}/{m.Groups["account"].Value}";
src\common\AzureConnectionStringBuildTask.cs (2)
45AccountName = matches[0].Groups["name"].Value; 46AccountKey = matches[0].Groups["key"].Value;
Microsoft.DotNet.Build.Tasks.Feed.Tests (3)
PublishArtifactsInManifestTests.cs (3)
67matches.Groups["account"]?.Value.Should().Be(account); 68matches.Groups["visibility"]?.Value.Should().Be(visibility); 69matches.Groups["feed"]?.Value.Should().Be(feed);
Microsoft.DotNet.Build.Tasks.Installers (4)
src\GenerateCurrentVersion.cs (4)
100if (match.Success && match.Groups.Count > 2) 103if (!DateTime.TryParseExact(match.Groups[1].Value, dateFormat, enUS, DateTimeStyles.AssumeLocal, out buildIdDate)) 105Log.LogError("The OfficialBuildId doesn't follow the expected({0}.rr) format: '{1}'", dateFormat, match.Groups[1].Value); 110GeneratedRevision = match.Groups[2].Value;
Microsoft.DotNet.Git.IssueManager (5)
Clients\AzureDevOpsClient.cs (3)
81return (m.Groups["account"].Value, 82m.Groups["project"].Value, 83m.Groups["repo"].Value);
Clients\GitHubClient.cs (2)
109return (match.Groups["owner"].Value, match.Groups["repo"].Value);
Microsoft.DotNet.Helix.JobSender (3)
JobDefinition.cs (3)
284if (queueInfoSplit.Success && queueInfoSplit.Groups.Count == 3) 286queueAlias = queueInfoSplit.Groups[1].Value; 287queueId = queueInfoSplit.Groups[2].Value;
Microsoft.DotNet.SourceBuild.Tasks (2)
src\WriteBuildOutputProps.cs (2)
123match => match.Groups?["FirstPartChar"].Value.ToUpperInvariant() 133match => match.Groups?["FirstPartChar"].Value.ToUpperInvariant()
Microsoft.DotNet.VersionTools (1)
Dependencies\FileRegexUpdater.cs (1)
76Group group = m.Groups[groupName];
Microsoft.DotNet.VersionTools.Tasks (1)
UpdateToRemoteDependencies.cs (1)
111Group g = match.Groups[valueGroup];
Microsoft.DotNet.XliffTasks (1)
StringExtensions.cs (1)
48int index = int.Parse(placeholder.Groups[1].Value);
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
101""", suppliedSchemaMatch.Groups[1].Value.Trim());
Microsoft.ML.Data (9)
Commands\EvaluateCommand.cs (1)
83var s = match.Groups[_groupName];
Dirty\IniFileUtils.cs (1)
43string count = match.Groups[1].Value;
EntryPoints\EntryPointNode.cs (7)
1078if (match.Groups["NumericAccessor"].Success) 1081match.Groups["Name"].Value, 1082int.Parse(match.Groups["NumericAccessor"].Value)); 1085if (match.Groups["StringAccessor"].Success) 1088match.Groups["Name"].Value, 1089match.Groups["StringAccessor"].Value); 1092return new SimpleVariableBinding(match.Groups["Name"].Value);
Microsoft.ML.ResultProcessor (11)
ResultProcessor.cs (11)
612timeElapsed = mc.Groups["timeElapsed"].Value; 613executionDate = mc.Groups["executionDate"].Value; 621if (mc.Groups["memoryType"].Value == "Virtual") 622virtualMemory = mc.Groups["memoryUsage"].Value; 623else if (mc.Groups["memoryType"].Value == "Physical") 624physicalMemory = mc.Groups["memoryUsage"].Value; 798string name = matchNameValueDeviation.Groups["name"].Value; 799Double doubleValue = Double.Parse(matchNameValueDeviation.Groups["value"].Value, CultureInfo.InvariantCulture); 801float deviation = (float)Double.Parse(matchNameValueDeviation.Groups["deviation"].Value, CultureInfo.InvariantCulture); 818string name = matchNameValue.Groups["name"].Value; 819float value = float.Parse(matchNameValue.Groups["value"].Value, CultureInfo.InvariantCulture);
MSBuild (1)
DebugUtils.cs (1)
78var nodeMode = match.Groups["nodemode"].Value;
SemanticSearch.BuildTask (3)
GenerateFilteredReferenceAssembliesTask.cs (3)
136var inclusion = match.Groups["Inclusion"].Value; 137var kinds = match.Groups["Kinds"].Value; 138var metadataName = match.Groups["MetadataName"].Value;
System.Data.Common (2)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
449CaptureCollection keyvalues = match.Groups[ValueIndex].Captures; 450foreach (Capture keypair in match.Groups[KeyIndex].Captures)
System.Data.Odbc (2)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
449CaptureCollection keyvalues = match.Groups[ValueIndex].Captures; 450foreach (Capture keypair in match.Groups[KeyIndex].Captures)
System.Private.Xml (24)
System\Xml\Serialization\SourceInfo.cs (4)
75object varA = ILG.GetVariable(match.Groups["a"].Value); 77object varIA = ILG.GetVariable(match.Groups["ia"].Value); 196Debug.Assert(match.Groups["arg"].Value == Arg); 197Debug.Assert(match.Groups["cast"].Value == CodeIdentifier.GetCSharpName(Type!));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (20)
2739Debug.Assert(match.Groups["locA1"].Value == match.Groups["locA2"].Value); 2740Debug.Assert(match.Groups["locA1"].Value == match.Groups["locA3"].Value); 2741Debug.Assert(match.Groups["locI1"].Value == match.Groups["locI2"].Value); 2743LocalBuilder localA = ilg.GetLocal(match.Groups["locA1"].Value); 2744LocalBuilder localI = ilg.GetLocal(match.Groups["locI1"].Value); 2785System.Diagnostics.Debug.Assert(CodeGenerator.GetVariableType(ilg.GetVariable(match.Groups["a"].Value)).IsArray); 2786ilg.Load(ilg.GetVariable(match.Groups["a"].Value)); 2787ilg.Load(ilg.GetVariable(match.Groups["ia"].Value)); 2831object oVar = ilg.GetVariable(match.Groups["locA1"].Value); 2867Type varType = CodeGenerator.GetVariableType(ilg.GetVariable(match.Groups["a"].Value)); 3563ilg.Ldstr(match.Groups["qnames"].Value); 3572LocalBuilder localO = ilg.GetLocal(match.Groups["o"].Value); 3575ilg.Ldstr(match.Groups["qnames"].Value); 3584LocalBuilder localO = ilg.GetLocal(match.Groups["o"].Value); 3596LocalBuilder localO = ilg.GetLocal(match.Groups["o"].Value); 3610ilg.Ldc(int.Parse(match.Groups["index"].Value, CultureInfo.InvariantCulture)); 3623ilg.Ldc(int.Parse(match.Groups["index"].Value, CultureInfo.InvariantCulture));
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\Match.cs (1)
161Synchronized(inner.Groups[i]);
System\Text\RegularExpressions\Regex.Split.cs (4)
99for (int i = 1; i < match.Groups.Count; i++) 103state.results.Add(match.Groups[i].Value); 127for (int i = 1; i < match.Groups.Count; i++) 131state.results.Add(match.Groups[i].Value);
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
315string propertyName = match.Groups["name"].Value.Trim();
Templates.Blazor.Tests (4)
BlazorWasmTemplateTest.cs (1)
121var serviceWorkerAssetsManifestVersionJson = serviceWorkerAssetsManifestVersionMatch.Groups[1].Captures[0].Value;
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
Templates.Blazor.WebAssembly.Tests (3)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
Templates.Mvc.Tests (3)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
Templates.Tests (3)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
285var subject = subjectMatch.Groups[1].Value; 299var hashes = matches.OfType<Match>().Select(m => m.Groups[1].Value).ToList();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
813openSslDir = match.Groups[1].Value;
VersioningWebSite (3)
VersionRouteAttribute.cs (3)
59var lowerBound = match.Groups["lb"].Value; 60var higherBound = match.Groups["hb"].Value; 61var range = match.Groups["range"].Value;
XmlFileLogger (2)
XmlFileLogger.cs (2)
139_build.SetTaskAssembly(match.Groups["task"].Value, match.Groups["assembly"].Value);
xunit.assert (3)
Sdk\Exceptions\ExceptionUtility.cs (3)
75 var file = match.Groups["file"].Value; 76 return string.Format(CultureInfo.InvariantCulture, "{0}{1}({2},0): at {3}", indent, file, match.Groups["line"].Value, match.Groups["method"].Value);
xunit.console (1)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (1)
110var arch = match?.Groups?["arch"]?.Value;