title: parsing solution file using powershell
body: <p>I have a solution file that includes some projects inside and I'd like to delete some of them using PowerShell.
  The aim is to delete a block of text that contains a string (let's say "abcxyz") starting with "Project" and ends with "EndProject" in the next line (or more than that).</p>
  
  <p>For example:</p>
  
  <pre><code>Project("{1111-2222-FFFF-3333}") = "AutoRun", "..\generate\Infra\generate\generate.csproj", "{999999-UUUUUU-GGGGGG-ABCDEFGH}"
  EndProject
  Project("{5555-2222-FFFF-3333}") = "SetupSec", "..\generate\Setup.csproj", "{999999-UUUUUU-GGGGGG-ABCDEFGH}"
  EndProject
  Project("{4444-2222-FFFF-3333}") = "Common.Fyyy", "..\generate\Infra\Common\Common.csproj", "{999999-UUUUUU-GGGGGG-ABCDEFGH}"
  EndProject
  Project("{9999-2222-FFFF-3333}") = "Command.Console", "..\generate\Path\Console.csproj", "{999999-UUUUUU-GGGGGG-ABCDEFGH}"
  EndProject
  Project("{7777-2222-FFFF-3333}") = "Infra.GUI", "..\..\generate\GUI.csproj", "{999999-UUUUUU-GGGGGG-ABCDEFGH}"
      ProjectSection(ProjectDependencies) = postProject
          {AAAA-2222-FFFF-3333} = {999999-UUUUUU-GGGGGG-ABCDEFGH}
      EndProjectSection
  EndProject
  </code></pre>
  
  <p>In the example above, I'd like to remove projects contains the string "Infra" in any case.
  Is there a simple way of doing it using <strong>PowerShell Regex</strong>?
  (deletion should be done to entire solution file from <em>Project</em> to <em>EndProject</em>)</p>
  
  <p>Thanks,</p>
  
  <p>Shai.</p>