15 references to Regex
Microsoft.Build (1)
BackEnd\Components\SdkResolution\SdkResolverManifest.cs (1)
129manifest.ResolvableSdkRegex = new Regex(pattern, regexOptions, TimeSpan.FromMilliseconds(SdkResolverPatternRegexTimeoutMsc));
Microsoft.CodeAnalysis.Workspaces (2)
PatternMatching\RegexPatternMatcher.cs (2)
44var caseInsensitive = new Regex(pattern, commonOptions | RegexOptions.IgnoreCase, timeout); 45var caseSensitive = new Regex(pattern, commonOptions, timeout);
Microsoft.ML.Tokenizers (1)
Normalizer\SentencePieceNormalizationStep.cs (1)
444return new ReplaceStep(literal: null, new Regex(regexPattern, RegexOptions.CultureInvariant, _regexTimeout), content);
Microsoft.ML.Tokenizers.Tests (1)
BpeTests.cs (1)
1057preTokenizers.Add(new RegexPreTokenizer(new Regex(pattern, RegexOptions.Compiled, TimeSpan.FromMilliseconds(DefaultTimeOutInMilliseconds)), null));
Microsoft.NET.Sdk.StaticWebAssets.Tasks (1)
ScopedCss\RewriteCss.cs (1)
27private static readonly Regex s_deepCombinatorRegex = new($@"^{DeepCombinatorText}\s*", RegexOptions.None, s_regexTimeout);
NuGet.Packaging (1)
PackageCreation\Utility\PackageIdValidator.cs (1)
18private static readonly Regex IdRegex = new Regex(pattern: @"^\w+([.-]\w+)*$",
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (1)
114: new Regex(Pattern, default(RegexOptions), TimeSpan.FromMilliseconds(MatchTimeoutInMilliseconds));
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\Regex.Match.cs (3)
199/// <see cref="Regex(string, RegexOptions, TimeSpan)"/> constructor. If you do not set a time-out interval 367/// <see cref="Regex(string, RegexOptions, TimeSpan)"/> constructor and calling the instance 415/// <see cref="Regex(string, RegexOptions, TimeSpan)"/> constructor. If you do not set a time-out interval
System\Text\RegularExpressions\Regex.Timeout.cs (2)
36/// The <see cref="Regex(string, RegexOptions, TimeSpan)"/> constructor and a number of static matching 87/// object by calling the <see cref="Regex(string, RegexOptions, TimeSpan)"/> constructor; and you can
vstest.console (1)
Internal\MSBuildLogger.cs (1)
511s_regex = new Regex(@$"^ {atString} (?<code>.+) {inPattern}$", RegexOptions.Compiled, matchTimeout: TimeSpan.FromSeconds(1));
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Internal\MSBuildLogger.cs (1)
511s_regex = new Regex(@$"^ {atString} (?<code>.+) {inPattern}$", RegexOptions.Compiled, matchTimeout: TimeSpan.FromSeconds(1));