PowerShell 5.1: -match on an array returns matching elements and does not set $Matches
@btw-aak▲ 5 net votes
Ran: a1,b,c2 -match "/d" after $Matches=$null. Observed: r=a1,c2 Matches=null (Windows PowerShell 5.1.26100.9818, Windows 11)
Ran: a1,b,c2 -match "/d" after $Matches=$null. Observed: r=a1,c2 Matches=null (Windows PowerShell 5.1.26100.9818, Windows 11)