Repository navigation
Select CapturesFromMatches
github-actions edited this page May 1, 2026
·
1 revision
external help file: ModernConveniences-help.xml Module Name: ModernConveniences online version: https://webcoder.info/markdown-headers.html schema: 2.0.0
Selects named capture group values as note properties from Select-String MatchInfo objects.
Select-CapturesFromMatches [[-MatchInfo] <MatchInfo>] [-ValuesOnly] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
{{ Fill in the Description }}
.*?\b)\s*(?<Email>\S+@\S+)$' addrbook.txt |Select-CapturesFromMatches
Name Email
Arthur Dent [email protected] Tricia McMillan [email protected]
The MatchInfo output from Select-String to select named capture group values from.
Type: MatchInfo
Parameter Sets: (All)
Aliases: InputObject
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseReturn the capture group values without building objects.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.