title: PowerShell wildcard in the middle of a string
body: <p>I am getting some content from a text file and loading it into a variable. </p>
  
  <p>Once I have the data I iterate through each row of data excluding some values being added into my array like this..</p>
  
  <pre><code>foreach($row in $data)
  {
      if($row)
      {
          Write-Host $row
          [Array]$index = $row.Split(" ") -ne "[needWildCardHere]" -ne "Value2" -ne "Value3" -ne "Value4" -ne "Value5"
      }
  }
  </code></pre>
  
  <p>Each value that matches each string I give, will not be added into the array. </p>
  
  <p>Notice my very first value here <code>[Array]$index = $row.Split(" ") -ne "[needWildCardHere]"</code></p>
  
  <p>I have a bunch of values in the <code>$row</code> of <code>$data</code> that I have that have a timestamp similar to this:</p>
  
  <p>[10:49:32] [09:32:57] [06:17:15] [06:17:15]</p>
  
  <p>Can I put a wild card inbetween brackets so I do not add any value that has [brackets] into my array?</p>
  
  <p>Feel free to ask me if something is unclear,</p>
  
  <p>Thanks</p>