Powershell Use Wildcards when matching arrays
问题 I've been banging my head against a wall for hours now and am looking for some help. To simplify my issue, I have two arrays, one which contains wildcards, and the other which makes use of those wildcards: $WildCardArray = @("RED-*.htm", "*.yellow", "BLUE!.txt", "*.green", "*.purple") $SpelledOutArray = @("RED-123.htm", "456.yellow", "BLUE!.txt", "789.green", "purple.102", "orange.abc") I cannot get PowerShell to recognize that these match. My end goal is to have an output that tells me that