-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Gotcha with character groups #4268
Copy link
Copy link
Closed
Labels
area-languageArea - PowerShell syntax and keywordsArea - PowerShell syntax and keywords
Description
Can the character groups section include a note that if you want to match a hyphen ('-'), that it must be included first or last in the group? Otherwise it is treated as a range and is not matched.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 5a1473a9-d19e-26f6-6a90-13d802f0ed35
- Version Independent ID: ac918b8d-aece-5c59-2a88-64c1a91ff5f5
- Content: about_Regular_Expressions
- Content Source: reference/6/Microsoft.PowerShell.Core/About/about_Regular_Expressions.md
- Product: powershell
- Technology: powershell-cmdlets
- GitHub Login: @SteveL-MSFT
- Microsoft Alias: slee
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-languageArea - PowerShell syntax and keywordsArea - PowerShell syntax and keywords