PowerShell-Docs
PowerShell-Docs copied to clipboard
Gotcha with character groups
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