Home Forums Programming Powershell Remove items from an array based on another array RE: Remove items from an array based on another array

  • Here's one way, there are probably more.

    foreach ($result in $results) {if ($remove -contains $result.split(",")[1]) { $results.Remove($result) }}