Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Only get objects that start with an array of characters

$
0
0

 

 

So, i'm looking for the best way use .startswith with an array of characters

I can do ? {$_.object.startswith("n") -or blah blah.. but it has to be something better than that.

My weakest point is regex, so i'm hoping someone can kickstart me..

 

 

n
w
x
d
h
r
j
m
c

Viewing all articles
Browse latest Browse all 6937

Trending Articles