Skip to content

It is not clear that the -match operator matches only the first occurence #3701

@dariomangoni

Description

@dariomangoni

I think it is quite important to say that the $Matches hashtable will only contain the first occurence of the matching pattern.
It is not so obvious, there are no examples regarding this fact and it is not clearly stated.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

area-languageArea - PowerShell syntax and keywords

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions