title: Find Regex for text in Visual Studio solution file
body: <p>I want to find the projects included in a solution file. I constructed a regex for this purpose when I run the regex in online compiler it works fine but in my local application it does not work. Here are both the regex</p>
  
  <p>Regex on My machine: </p>
  
  <pre><code>@"Project\(""(\{.*\})""\)\s*=\s*""(myproject)""\s*,\s*""(.*)""\s*,\s*""(.*)""[\s*\n*\s*]EndProject"
  </code></pre>
  
  <p>Regex online Compiler: </p>
  
  <pre><code>Project\("(\{.*\})"\)\s*=\s*"(myproject)"\s*,\s*"(.*)"\s*,\s*"(.*)"[\s*\n*\s*]EndProject
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>Regex Pattern = new Regex(pattern);
  var inputLines = File.ReadAllText(path);
  var matches = Pattern.Matches(inputLines);
  </code></pre>
  
  <p>Sample Text</p>
  
  <pre><code>Microsoft Visual Studio Solution File, Format Version 12.00
  # Visual Studio Version 16
  VisualStudioVersion = 16.0.29613.14
  MinimumVisualStudioVersion = 10.0.40219.1
  Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "myproject", "myproject.csproj", "{96C046DE-705D-4984-9414-124B6A6EA28E}"
  EndProject
  Global
      GlobalSection(SolutionConfigurationPlatforms) = preSolution
          Debug|Any CPU = Debug|Any CPU
          Release|Any CPU = Release|Any CPU
      EndGlobalSection
      GlobalSection(ProjectConfigurationPlatforms) = postSolution
          {96C046DE-705D-4984-9414-124B6A6EA28E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
          {96C046DE-705D-4984-9414-124B6A6EA28E}.Debug|Any CPU.Build.0 = Debug|Any CPU
          {96C046DE-705D-4984-9414-124B6A6EA28E}.Release|Any CPU.ActiveCfg = Release|Any CPU
          {96C046DE-705D-4984-9414-124B6A6EA28E}.Release|Any CPU.Build.0 = Release|Any CPU
      EndGlobalSection
      GlobalSection(SolutionProperties) = preSolution
          HideSolutionNode = FALSE
      EndGlobalSection
      GlobalSection(ExtensibilityGlobals) = postSolution
          SolutionGuid = {B766FA40-EBEF-4E79-A5B1-04BE348D4793}
      EndGlobalSection
  EndGlobal
  </code></pre>