182 references to IgnoreCase
AnalyzerRunner (1)
Options.cs (1)
162var expression = new Regex(arg.Substring("/editperf:".Length), RegexOptions.Compiled | RegexOptions.IgnoreCase);
Aspire.Dashboard (2)
Components\Layout\MobileNavMenu.razor.cs (1)
100return new Regex($"^({pageRelativeBasePath}|{pageRelativeBasePath}/.+)$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
ConsoleLogs\UrlParser.cs (1)
72RegexOptions.IgnoreCase | RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture)]
Aspire.Hosting (1)
Dashboard\DashboardService.cs (1)
32[GeneratedRegex("""^(?<name>.+?)\.?AppHost$""", RegexOptions.ExplicitCapture | RegexOptions.IgnoreCase | RegexOptions.Singleline | RegexOptions.CultureInvariant)]
dotnet-svcutil-lib.Tests (1)
FixupUtil.cs (1)
149var regexOptions = ignoreCase ? RegexOptions.IgnoreCase : RegexOptions.None;
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\EmbeddedLanguageCommentDetector.cs (1)
30RegexOptions.ExplicitCapture | RegexOptions.IgnoreCase | RegexOptions.Compiled);
Microsoft.AspNetCore.Components (3)
src\Http\Routing\src\Constraints\RegexInlineRouteConstraint.cs (1)
25public RegexInlineRouteConstraint([StringSyntax(StringSyntaxAttribute.Regex, RegexOptions.CultureInvariant | RegexOptions.IgnoreCase)] string regexPattern)
src\Http\Routing\src\Constraints\RegexRouteConstraint.cs (2)
46[StringSyntax(StringSyntaxAttribute.Regex, RegexOptions.CultureInvariant | RegexOptions.Compiled | RegexOptions.IgnoreCase)] 55RegexOptions.CultureInvariant | RegexOptions.Compiled | RegexOptions.IgnoreCase,
Microsoft.AspNetCore.Rewrite (4)
ApacheModRewrite\RuleBuilder.cs (2)
68match = new RegexMatch(new Regex(input.Operand, RegexOptions.CultureInvariant | RegexOptions.Compiled | RegexOptions.IgnoreCase, _regexTimeout), input.Invert); 165_match = new RegexMatch(new Regex(input.Operand, RegexOptions.CultureInvariant | RegexOptions.Compiled | RegexOptions.IgnoreCase, _regexTimeout), input.Invert);
IISUrlRewrite\UriMatchCondition.cs (1)
26regexOptions = ignoreCase ? regexOptions | RegexOptions.IgnoreCase : regexOptions;
IISUrlRewrite\UrlRewriteRuleBuilder.cs (1)
49var regex = new Regex(input, RegexOptions.CultureInvariant | RegexOptions.Compiled | RegexOptions.IgnoreCase, _regexTimeout);
Microsoft.AspNetCore.Routing (3)
Constraints\RegexInlineRouteConstraint.cs (1)
25public RegexInlineRouteConstraint([StringSyntax(StringSyntaxAttribute.Regex, RegexOptions.CultureInvariant | RegexOptions.IgnoreCase)] string regexPattern)
Constraints\RegexRouteConstraint.cs (2)
46[StringSyntax(StringSyntaxAttribute.Regex, RegexOptions.CultureInvariant | RegexOptions.Compiled | RegexOptions.IgnoreCase)] 55RegexOptions.CultureInvariant | RegexOptions.Compiled | RegexOptions.IgnoreCase,
Microsoft.Build (15)
BuildEnvironmentHelper.cs (2)
172Regex.IsMatch(msBuildExe, $@".*\\MSBuild\\{CurrentToolsVersion}\\Bin\\.*MSBuild(?:TaskHost)?\.exe", RegexOptions.IgnoreCase)) 245Regex.IsMatch(msbuildExe, msBuildPathPattern, RegexOptions.IgnoreCase))
CanonicalError.cs (8)
73RegexOptions.IgnoreCase | RegexOptions.Compiled)); 78RegexOptions.IgnoreCase | RegexOptions.Compiled)); 90RegexOptions.IgnoreCase | RegexOptions.Compiled)); 98RegexOptions.IgnoreCase | RegexOptions.Compiled)); 108RegexOptions.IgnoreCase | RegexOptions.Compiled)); 118RegexOptions.IgnoreCase | RegexOptions.Compiled)); 130RegexOptions.IgnoreCase | RegexOptions.Compiled)); 144RegexOptions.IgnoreCase | RegexOptions.Compiled));
DebugUtils.cs (1)
72var match = Regex.Match(input, @"/nodemode:(?<nodemode>[12\s])(\s|$)", RegexOptions.IgnoreCase);
Evaluation\IntrinsicFunctions.cs (1)
40private static readonly Lazy<Regex> RegistrySdkRegex = new Lazy<Regex>(() => new Regex(@"^HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Microsoft SDKs\\Windows\\v(\d+\.\d+)$", RegexOptions.IgnoreCase));
FileMatcher.cs (2)
54public const RegexOptions DefaultRegexOptions = RegexOptions.IgnoreCase; 2156matchWithRegex ? new Regex(RegularExpressionFromFileSpec(oldFixedDirectoryPart, wildcardDirectoryPart, filenamePart), RegexOptions.IgnoreCase) : null,
Utilities\EngineFileUtilities.cs (1)
549Regex item = new Regex(regex, RegexOptions.Compiled | RegexOptions.Singleline | RegexOptions.IgnoreCase);
Microsoft.Build.Engine.OM.UnitTests (3)
BuildEnvironmentHelper.cs (2)
172Regex.IsMatch(msBuildExe, $@".*\\MSBuild\\{CurrentToolsVersion}\\Bin\\.*MSBuild(?:TaskHost)?\.exe", RegexOptions.IgnoreCase)) 245Regex.IsMatch(msbuildExe, msBuildPathPattern, RegexOptions.IgnoreCase))
DebugUtils.cs (1)
72var match = Regex.Match(input, @"/nodemode:(?<nodemode>[12\s])(\s|$)", RegexOptions.IgnoreCase);
Microsoft.Build.Framework (1)
FileClassifier.cs (1)
157if (Regex.IsMatch(processName, $@".*\\MSBuild\\Current\\Bin\\.*MSBuild(?:TaskHost)?\.exe", RegexOptions.IgnoreCase))
Microsoft.Build.Tasks.CodeAnalysis (7)
CanonicalError.cs (7)
72RegexOptions.IgnoreCase 84RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); 92RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); 102RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); 112RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); 124RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace); 138RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace);
Microsoft.Build.Tasks.Core (16)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
30RegexOptions.IgnoreCase | RegexOptions.Compiled));
BuildEnvironmentHelper.cs (2)
172Regex.IsMatch(msBuildExe, $@".*\\MSBuild\\{CurrentToolsVersion}\\Bin\\.*MSBuild(?:TaskHost)?\.exe", RegexOptions.IgnoreCase)) 245Regex.IsMatch(msbuildExe, msBuildPathPattern, RegexOptions.IgnoreCase))
CanonicalError.cs (8)
73RegexOptions.IgnoreCase | RegexOptions.Compiled)); 78RegexOptions.IgnoreCase | RegexOptions.Compiled)); 90RegexOptions.IgnoreCase | RegexOptions.Compiled)); 98RegexOptions.IgnoreCase | RegexOptions.Compiled)); 108RegexOptions.IgnoreCase | RegexOptions.Compiled)); 118RegexOptions.IgnoreCase | RegexOptions.Compiled)); 130RegexOptions.IgnoreCase | RegexOptions.Compiled)); 144RegexOptions.IgnoreCase | RegexOptions.Compiled));
DebugUtils.cs (1)
72var match = Regex.Match(input, @"/nodemode:(?<nodemode>[12\s])(\s|$)", RegexOptions.IgnoreCase);
FileMatcher.cs (2)
54public const RegexOptions DefaultRegexOptions = RegexOptions.IgnoreCase; 2156matchWithRegex ? new Regex(RegularExpressionFromFileSpec(oldFixedDirectoryPart, wildcardDirectoryPart, filenamePart), RegexOptions.IgnoreCase) : null,
FindInvalidProjectReferences.cs (1)
26RegexOptions.IgnoreCase);
ResolveSDKReference.cs (1)
42RegexOptions.IgnoreCase);
Microsoft.Build.Utilities.Core (15)
AssemblyFolders\AssemblyFoldersFromConfigInfo.cs (1)
34BuildEnvironmentHelper.Instance.VisualStudioInstallRootDirectory, RegexOptions.IgnoreCase);
BuildEnvironmentHelper.cs (2)
172Regex.IsMatch(msBuildExe, $@".*\\MSBuild\\{CurrentToolsVersion}\\Bin\\.*MSBuild(?:TaskHost)?\.exe", RegexOptions.IgnoreCase)) 245Regex.IsMatch(msbuildExe, msBuildPathPattern, RegexOptions.IgnoreCase))
CanonicalError.cs (8)
73RegexOptions.IgnoreCase | RegexOptions.Compiled)); 78RegexOptions.IgnoreCase | RegexOptions.Compiled)); 90RegexOptions.IgnoreCase | RegexOptions.Compiled)); 98RegexOptions.IgnoreCase | RegexOptions.Compiled)); 108RegexOptions.IgnoreCase | RegexOptions.Compiled)); 118RegexOptions.IgnoreCase | RegexOptions.Compiled)); 130RegexOptions.IgnoreCase | RegexOptions.Compiled)); 144RegexOptions.IgnoreCase | RegexOptions.Compiled));
CommandLineBuilder.cs (1)
164?? (_allowedUnquoted = new Regex(_quoteHyphens ? s_allowedUnquotedRegexNoHyphen : s_allowedUnquotedRegexWithHyphen, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant));
DebugUtils.cs (1)
72var match = Regex.Match(input, @"/nodemode:(?<nodemode>[12\s])(\s|$)", RegexOptions.IgnoreCase);
FileMatcher.cs (2)
54public const RegexOptions DefaultRegexOptions = RegexOptions.IgnoreCase; 2156matchWithRegex ? new Regex(RegularExpressionFromFileSpec(oldFixedDirectoryPart, wildcardDirectoryPart, filenamePart), RegexOptions.IgnoreCase) : null,
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (3)
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_BasicTests.cs (3)
14695""", RegexOptions.IgnoreCase); 14732""", RegexOptions.IgnoreCase); 14766""", RegexOptions.IgnoreCase);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexPatternDetectorTests.cs (2)
133=> Match("lang=regex,ecmascript,ignorecase. Explanation", RegexOptions.ECMAScript | RegexOptions.IgnoreCase); 137=> Match("Language=Regexp,ECMAScript,IgnoreCase. Explanation", RegexOptions.ECMAScript | RegexOptions.IgnoreCase);
Microsoft.CodeAnalysis.Features (3)
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
24private readonly Regex _regex = new($"({hexPrefix}|{binaryPrefix})?([_0-9a-f]+)(.*)", RegexOptions.IgnoreCase | RegexOptions.Compiled);
EmbeddedLanguages\EmbeddedLanguageCommentDetector.cs (1)
29RegexOptions.ExplicitCapture | RegexOptions.IgnoreCase | RegexOptions.Compiled);
EmbeddedLanguages\RegularExpressions\RegexParser.cs (1)
1208case 'i': case 'I': return RegexOptions.IgnoreCase;
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
489private static readonly Regex _namedParameterMatcher = new Regex(@"\{([a-z]\w+)\}", RegexOptions.IgnoreCase | RegexOptions.Compiled);
Microsoft.DotNet.SignCheckLibrary (1)
Verification\Exclusions.cs (1)
162return Regex.IsMatch(value, regexPattern, RegexOptions.IgnoreCase);
Microsoft.DotNet.SourceBuild.Tasks (2)
src\UsageReport\UsagePattern.cs (2)
30return new Regex(IdentityRegex, RegexOptions.IgnoreCase | RegexOptions.Compiled); 40RegexOptions.IgnoreCase | RegexOptions.Compiled);
Microsoft.DotNet.XUnitAssert.Tests (1)
StringAssertsTests.cs (1)
796 Assert.Matches(new Regex(@"[a-z]+", RegexOptions.IgnoreCase), "HELLO");
Microsoft.Gen.ComplianceReports.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
513results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase)); 521results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase)); 528results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
Microsoft.Gen.ContextualOptions.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
513results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase)); 521results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase)); 528results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
Microsoft.Gen.Logging.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
513results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase)); 521results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase)); 528results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
Microsoft.Gen.Metrics.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
513results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase)); 521results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase)); 528results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
Microsoft.Gen.MetricsReports.Unit.Tests (3)
test\Generators\Shared\RoslynTestUtils.cs (3)
513results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase)); 521results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase)); 528results.Add(Regex.Replace(s.ToString(), "\r\n", "\n", RegexOptions.IgnoreCase));
Microsoft.Maui.Controls.DesignTools (1)
ColorDesignTypeConverter.cs (1)
189 static readonly Lazy<Regex> RxFuncExpr = new(() => new Regex(RxFuncPattern, RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace | RegexOptions.Singleline));
Microsoft.ML.AutoML (1)
ColumnInference\ColumnTypeInference.cs (1)
219if (Regex.IsMatch(v, candidate, RegexOptions.IgnoreCase))
Microsoft.ML.Data (9)
Evaluators\MulticlassClassificationEvaluator.cs (2)
134isVector: true, namePattern: new Regex(string.Format(@"^{0}(?<class>.+)", LogLoss), RegexOptions.IgnoreCase), 1029namePattern: new Regex(string.Format(@"^{0}(?<class>.+)", MulticlassClassificationEvaluator.LogLoss), RegexOptions.IgnoreCase));
Evaluators\MultiOutputRegressionEvaluator.cs (4)
82isVector: true, namePattern: new Regex(string.Format(@"{0}_(?<label>\d+)\)", L1), RegexOptions.IgnoreCase), 85isVector: true, namePattern: new Regex(string.Format(@"{0}_(?<label>\d+)\)", L2), RegexOptions.IgnoreCase), 88isVector: true, namePattern: new Regex(string.Format(@"{0}_(?<label>\d+)\)", Rms), RegexOptions.IgnoreCase), 91isVector: true, namePattern: new Regex(string.Format(@"{0}_(?<label>\d+)\)", Loss), RegexOptions.IgnoreCase),
Evaluators\RankingEvaluator.cs (3)
148namePattern: new Regex(string.Format(@"^{0}@(?<at>\d+)", Ndcg), RegexOptions.IgnoreCase), 151namePattern: new Regex(string.Format(@"^{0}@(?<at>\d+)", Dcg), RegexOptions.IgnoreCase), 154namePattern: new Regex(string.Format(@"^{0}@(?<at>\d+)", MaxDcg), RegexOptions.IgnoreCase),
Microsoft.ML.TestFramework (22)
BaseTestBaseline.cs (22)
68private static readonly Regex _matchNumbers = new Regex(@"-?\b[0-9]+\.?[0-9]*(E[-+][0-9]*)?\b", RegexOptions.IgnoreCase | RegexOptions.Compiled); 301private static readonly Regex _matchDataRoot = new Regex(DataRootRegExp, RegexOptions.IgnoreCase | RegexOptions.Compiled); 302private static readonly Regex _matchDataUnixRoot = new Regex(DataRootUnixRegExp, RegexOptions.IgnoreCase | RegexOptions.Compiled); 303private static readonly Regex _matchSamplesRoot = new Regex(SamplesRootRegExp, RegexOptions.IgnoreCase | RegexOptions.Compiled); 304private static readonly Regex _matchSamplesUnixRoot = new Regex(SamplesRootUnixRegExp, RegexOptions.IgnoreCase | RegexOptions.Compiled); 305private static readonly Regex _matchSourceRoot = new Regex(SourceRootRegExp, RegexOptions.IgnoreCase | RegexOptions.Compiled); 306private static readonly Regex _matchSourceUnixRoot = new Regex(SourceRootUnixRegExp, RegexOptions.IgnoreCase | RegexOptions.Compiled); 307private static readonly Regex _matchTestsRoot = new Regex(TestsRootRegExp, RegexOptions.IgnoreCase | RegexOptions.Compiled); 308private static readonly Regex _matchOutputRoot = new Regex(OutputRootRegExp, RegexOptions.IgnoreCase | RegexOptions.Compiled); 309private static readonly Regex _matchOutputUnixRoot = new Regex(OutputRootUnixRegExp, RegexOptions.IgnoreCase | RegexOptions.Compiled); 310private static readonly Regex _matchTL = new Regex(@"[a-z]:\\[a-z0-9_\.\\]+\\TL.exe", RegexOptions.IgnoreCase | RegexOptions.Compiled); 311private static readonly Regex _matchTempFile = new Regex(@"[a-z]:\\users\\[a-z0-9_\.]+\\appdata\\local\\temp\\[a-z0-9_\.\\]*\.tmp", RegexOptions.IgnoreCase | RegexOptions.Compiled); 312private static readonly Regex _matchTempDir = new Regex(@"[a-z]:\\users\\[a-z0-9_\.]+\\appdata\\local\\temp\\[a-z0-9_\.\\]+\\", RegexOptions.IgnoreCase | RegexOptions.Compiled); 313private static readonly Regex _matchTempUnixDir = new Regex(@"\/(var\/)?tmp" + @"\/[^\\\t ]+", RegexOptions.IgnoreCase | RegexOptions.Compiled); 314private static readonly Regex _matchTempDirServiceProfile = new Regex(@"[a-z]:\\Windows\\ServiceProfiles\\[a-z0-9_\.]+\\appdata\\local\\temp\\[a-z0-9_\.\\]+", RegexOptions.IgnoreCase | RegexOptions.Compiled); 315private static readonly Regex _matchTempWindows = new Regex(@"[a-z]:\\Windows\\Temp\\[a-z0-9_\.]+", RegexOptions.IgnoreCase | RegexOptions.Compiled); 316private static readonly Regex _matchDateTime = new Regex(@"[0-9]{1,4}[-/][0-9]{1,2}[-/][0-9]{1,4} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,4}(\.[0-9]+)?( *[AP]M)?", RegexOptions.IgnoreCase | RegexOptions.Compiled); 327private static readonly Regex _matchGuid = new Regex(@"[A-F0-9]{8}(?:-[A-F0-9]{4}){3}-[A-F0-9]{12}", RegexOptions.IgnoreCase | RegexOptions.Compiled); 328private static readonly Regex _matchBin = new Regex(_binRegExp, RegexOptions.IgnoreCase | RegexOptions.Compiled); 329private static readonly Regex _matchUnixBin = new Regex(_binRegUnixExp, RegexOptions.IgnoreCase | RegexOptions.Compiled); 330private static readonly Regex _matchBin64 = new Regex(_bin64RegExp, RegexOptions.IgnoreCase | RegexOptions.Compiled); 331private static readonly Regex _matchUnixBin64 = new Regex(_bin64RegUnixExp, RegexOptions.IgnoreCase | RegexOptions.Compiled);
MSBuild (4)
BuildEnvironmentHelper.cs (2)
172Regex.IsMatch(msBuildExe, $@".*\\MSBuild\\{CurrentToolsVersion}\\Bin\\.*MSBuild(?:TaskHost)?\.exe", RegexOptions.IgnoreCase)) 245Regex.IsMatch(msbuildExe, msBuildPathPattern, RegexOptions.IgnoreCase))
DebugUtils.cs (1)
72var match = Regex.Match(input, @"/nodemode:(?<nodemode>[12\s])(\s|$)", RegexOptions.IgnoreCase);
XMake.cs (1)
2258responseFileDirectory, RegexOptions.IgnoreCase);
MSBuildTaskHost (2)
BuildEnvironmentHelper.cs (2)
172Regex.IsMatch(msBuildExe, $@".*\\MSBuild\\{CurrentToolsVersion}\\Bin\\.*MSBuild(?:TaskHost)?\.exe", RegexOptions.IgnoreCase)) 245Regex.IsMatch(msbuildExe, msBuildPathPattern, RegexOptions.IgnoreCase))
System.Drawing.Common.Tests (1)
System\Drawing\Imaging\ImageCodecInfoTests.cs (1)
94RegexOptions.IgnoreCase | RegexOptions.Singleline);
System.Net.WebProxy (5)
System\Net\WebProxy.cs (5)
27public WebProxy(Uri? Address, bool BypassOnLocal, [StringSyntax(StringSyntaxAttribute.Regex, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant)] string[]? BypassList) : this(Address, BypassOnLocal, BypassList, null) { } 29public WebProxy(Uri? Address, bool BypassOnLocal, [StringSyntax(StringSyntaxAttribute.Regex, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant)] string[]? BypassList, ICredentials? Credentials) 56public WebProxy(string? Address, bool BypassOnLocal, [StringSyntax(StringSyntaxAttribute.Regex, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant)] string[]? BypassList) 61public WebProxy(string? Address, bool BypassOnLocal, [StringSyntax(StringSyntaxAttribute.Regex, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant)] string[]? BypassList, ICredentials? Credentials) 140regexBypassList[i] = new Regex((string)bypassList[i]!, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
System.Text.RegularExpressions (36)
System\Text\RegularExpressions\GeneratedRegexAttribute.cs (1)
16/// When the <see cref="Regex"/> supports case-insensitive matches (either by passing <see cref="RegexOptions.IgnoreCase"/> or using the inline `(?i)` switch in the pattern) the regex
System\Text\RegularExpressions\Regex.cs (1)
151((options & RegexOptions.ECMAScript) != 0 && (options & ~(RegexOptions.ECMAScript | RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.Compiled | RegexOptions.CultureInvariant)) != 0) ||
System\Text\RegularExpressions\RegexCaseBehavior.cs (1)
9/// When a regular expression specifies the option <see cref="RegexOptions.IgnoreCase"/> then comparisons between the input and the
System\Text\RegularExpressions\RegexNode.cs (10)
113if ((options & RegexOptions.IgnoreCase) != 0) 121return new RegexNode(RegexNodeKind.One, options & ~RegexOptions.IgnoreCase, ch); 127return new RegexNode(RegexNodeKind.Set, options & ~RegexOptions.IgnoreCase, stringSet); 315Debug.Assert((node.Options & RegexOptions.IgnoreCase) == 0, $"{node.Kind} node should not have RegexOptions.IgnoreCase"); 529Options &= ~RegexOptions.IgnoreCase; 1000optionsAt = at.Options & (RegexOptions.RightToLeft | RegexOptions.IgnoreCase); 1048if ((prev.Options & RegexOptions.IgnoreCase) != 0) 1050prev.Options &= ~RegexOptions.IgnoreCase; 1581RegexOptions optionsAt = at.Options & (RegexOptions.RightToLeft | RegexOptions.IgnoreCase); 2881if ((Options & RegexOptions.IgnoreCase) != 0) sb.Append("-I");
System\Text\RegularExpressions\RegexParser.cs (19)
277StartGroup(new RegexNode(RegexNodeKind.Capture, (_options & ~RegexOptions.IgnoreCase), 0, -1)); 346string setString = ScanCharClass((_options & RegexOptions.IgnoreCase) != 0, scanOnly: false)!.ToStringClass(); 347_unit = new RegexNode(RegexNodeKind.Set, _options & ~RegexOptions.IgnoreCase, setString); 403new RegexNode(RegexNodeKind.Set, _options & ~RegexOptions.IgnoreCase, RegexCharClass.AnyClass) : 404new RegexNode(RegexNodeKind.Notone, _options & ~RegexOptions.IgnoreCase, '\n'); 1096new RegexNode(RegexNodeKind.Set, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.ECMAWordClass : RegexCharClass.WordClass); 1101new RegexNode(RegexNodeKind.Set, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.NotECMAWordClass : RegexCharClass.NotWordClass); 1106new RegexNode(RegexNodeKind.Set, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.ECMASpaceClass : RegexCharClass.SpaceClass); 1111new RegexNode(RegexNodeKind.Set, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.NotECMASpaceClass : RegexCharClass.NotSpaceClass); 1116new RegexNode(RegexNodeKind.Set, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.ECMADigitClass : RegexCharClass.DigitClass); 1121new RegexNode(RegexNodeKind.Set, (_options & ~RegexOptions.IgnoreCase), (_options & RegexOptions.ECMAScript) != 0 ? RegexCharClass.NotECMADigitClass : RegexCharClass.NotDigitClass); 1132cc.AddCategoryFromName(ParseProperty(), ch != 'p', (_options & RegexOptions.IgnoreCase) != 0, _pattern, _pos); 1133if ((_options & RegexOptions.IgnoreCase) != 0) 1138return new RegexNode(RegexNodeKind.Set, (_options & ~RegexOptions.IgnoreCase), cc.ToStringClass()); 1142if (result != null && result.Kind == RegexNodeKind.Backreference && (result.Options & RegexOptions.IgnoreCase) != 0) 1549'i' => RegexOptions.IgnoreCase, 2018_concatenation!.AddChild(RegexNode.CreateOneWithCaseConversion(_pattern[pos], isReplacement ? _options & ~RegexOptions.IgnoreCase : _options, _culture, ref _caseBehavior)); 2021case > 1 when (_options & RegexOptions.IgnoreCase) == 0 || isReplacement || !RegexCharClass.ParticipatesInCaseConversion(_pattern.AsSpan(pos, cch)): 2022_concatenation!.AddChild(new RegexNode(RegexNodeKind.Multi, _options & ~RegexOptions.IgnoreCase, _pattern.Substring(pos, cch)));
System\Text\RegularExpressions\RegexTreeAnalyzer.cs (3)
27results._hasIgnoreCase |= (node.Options & RegexOptions.IgnoreCase) != 0; 165/// <summary>Whether any node has <see cref="RegexOptions.IgnoreCase"/> set.</summary> 226/// <summary>Gets whether a node might have <see cref="RegexOptions.IgnoreCase"/> set.</summary>
System\Text\RegularExpressions\RegexWriter.cs (1)
208if ((node.Options & RegexOptions.IgnoreCase) != 0)