44 references to Multiline
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (1)
50RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace);
Microsoft.AspNetCore.Components.Endpoints.Tests (7)
EndpointHtmlRendererTest.cs (7)
83var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline); 198var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline); 247var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline); 338var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline); 399var firstMatch = Regex.Match(firstComponent, PrerenderedComponentPattern, RegexOptions.Multiline); 535var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline); 586var match = Regex.Match(content, PrerenderedComponentPattern, RegexOptions.Multiline);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Microsoft.Build.Engine.OM.UnitTests (6)
Construction\WhiteSpacePreservation_Tests.cs (6)
451projectContents = Regex.Replace(projectContents, @"(?<!\r)\n", "\r\n", RegexOptions.Multiline); 452updatedProject = Regex.Replace(updatedProject, @"(?<!\r)\n", "\r\n", RegexOptions.Multiline); 456projectContents = Regex.Replace(projectContents, @"\r\n", "\n", RegexOptions.Multiline); 457updatedProject = Regex.Replace(updatedProject, @"\r\n", "\n", RegexOptions.Multiline); 506var crlfCount = Regex.Matches(projectResults, @"\r\n", RegexOptions.Multiline).Count; 515Assert.Empty(Regex.Matches(projectResults, @"\r\n", RegexOptions.Multiline));
Microsoft.Build.Tasks.UnitTests (1)
XslTransformation_Tests.cs (1)
52private readonly Regex _surroundMatch = new Regex("surround", RegexOptions.Multiline | RegexOptions.Compiled);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
7537Regex.Replace(output, "^.*a.cs", "a.cs", RegexOptions.Multiline).Trim());
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (2)
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_ReferenceTests.cs (2)
4385""", RegexOptions.Multiline); 4455""", RegexOptions.Multiline);
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\RegularExpressions\RegexParser.cs (1)
1209case 'm': case 'M': return RegexOptions.Multiline;
Microsoft.CodeAnalysis.Test.Utilities (3)
CompilationVerifier.cs (2)
201private static readonly Regex s_headerCommentsRegex = new("""^\s*// Header size: [0-9]+\s*$""", RegexOptions.Multiline); 202private static readonly Regex s_codeSizeCommentsRegex = new("""^\s*// Code size(:) [0-9]+\s*""", RegexOptions.Multiline);
MarkedSource\MarkupTestFile.cs (1)
50RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
5364output = Regex.Replace(output, "^.*" & fileName, fileName, RegexOptions.Multiline) 6481Dim actual = Regex.Replace(output, "^.*a.vb", "a.vb", RegexOptions.Multiline).Trim()
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
CodeGen\CodeGenVBCore.vb (2)
3152Private Shared ReadOnly s_normalizeRegex As New Regex("^(\s*)", RegexOptions.Multiline) 3213expected = New Regex("^" + indent, RegexOptions.Multiline).Replace(expected, "")
System.Text.RegularExpressions (9)
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\RegexNode.cs (1)
2883if ((Options & RegexOptions.Multiline) != 0) sb.Append("-M");
System\Text\RegularExpressions\RegexNodeKind.cs (4)
80/// <summary>A beginning-of-line anchor, e.g. `^` in <see cref="RegexOptions.Multiline"/> mode.</summary> 82/// <summary>An end-of-line anchor, e.g. `$` in <see cref="RegexOptions.Multiline"/> mode.</summary> 92/// <summary>A beginning-of-string anchor, e.g. `\A`, or `^` when not in <see cref="RegexOptions.Multiline"/> mode.</summary> 96/// <summary>A end-of-string-or-before-ending-newline anchor, e.g. `\Z`, or `$` when not in <see cref="RegexOptions.Multiline"/> mode.</summary>
System\Text\RegularExpressions\RegexParser.cs (3)
394_unit = new RegexNode((_options & RegexOptions.Multiline) != 0 ? RegexNodeKind.Bol : RegexNodeKind.Beginning, _options); 398_unit = new RegexNode((_options & RegexOptions.Multiline) != 0 ? RegexNodeKind.Eol : RegexNodeKind.EndZ, _options); 1550'm' => RegexOptions.Multiline,
Templates.Blazor.Tests (2)
BlazorWasmTemplateTest.cs (1)
118var serviceWorkerAssetsManifestVersionMatch = new Regex(@"^\s*\""version\"":\s*(\""[^\""]+\"")", RegexOptions.Multiline)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);
Templates.Tests (1)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
298var matches = Regex.Matches(output, MacOSFindCertificateOutputRegex, RegexOptions.Multiline, MaxRegexTimeout);