I want to filter only files and folders with name start with 2[A-Z]
(uppercase only):
ls -recurse | Where-Object {$_.name -match '2[A-Z]'}
But it still returns lowercase files. Reading the -match
parameter of Where-Object
I don't see a way to fix this.