title: Creating Web Bindings from a string with multiple entries using PowerShell
body: <p>I'm new to PowerShell and already facing a big challenge.
  The goal is to read  a csv file. Each row of the file will be a  string  with binding parameters like:</p>
  
  <blockquote>
    <p>"Website1","116.167.74.172:443:www.xyz.com<br>
    116.167.74.174:443:www.xyz.com" </p>
    
    <p>"Website2",":80:www.xyz.com    116.167.74.172:80:"</p>
    
    <p>"Website3","116.167.75.155:443:    116.167.75.163:443:" </p>
    
    <p>"Website4",":80:"</p>
  </blockquote>
  
  <p>The command to be used is:</p>
  
  <pre><code>New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader TestSite
  </code></pre>
  
  <p>The problem is: how do I read the one string and break it into 3 parameters: <strong>IP</strong>, <strong>Port</strong> and <strong>HostHeader</strong>, even when I don't have all the 3 parameters specified?</p>