Add WildcardPattern ToRegex method #19992
Labels
Issue-Enhancement
the issue is more of a feature request than a bug
Up-for-Grabs
Up-for-grabs issues are not high priorities, and may be opportunities for external contributors
WG-Engine
core PowerShell engine, interpreter, and runtime
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
The text was updated successfully, but these errors were encountered: