-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Add WildcardPattern ToRegex method #19992
Copy link
Copy link
Closed
Labels
In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Metadata
Metadata
Assignees
Labels
In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary of the new feature / enhancement
As a user I want to be able to convert a user provided PowerShell wildcard pattern into a regex pattern for use in programs that accept regex.
Proposed technical implementation details (optional)
It looks like there is already a converter for this but just needs to be made public.
PowerShell/src/System.Management.Automation/engine/regex.cs
Lines 79 to 86 in 60dc724
PowerShell/src/System.Management.Automation/engine/regex.cs
Lines 936 to 953 in 60dc724