View Single Post
Old 06-13-2008   #2 (permalink)
Reed Wiedower


 
 

Re: match against array

I knew I should've walked over to my RegEx book!

Thanks.

end of line,

Reed

Kiron wrote:
Quote:

> # use RegEx's alternation operator '|'
> get-user | where-object {$_.name -match "Jane|John|David"}
>
> --
> Kiron
My System SpecsSystem Spec