glob pattern matching in .NET

后端 未结 14 1437
遇见更好的自我
遇见更好的自我 2020-11-29 01:52

Is there a built-in mechanism in .NET to match patterns other than Regular Expressions? I\'d like to match using UNIX style (glob) wildcards (* = any number of any characte

14条回答
  •  鱼传尺愫
    2020-11-29 02:29

    I have written a globbing library for .NETStandard, with tests and benchmarks. My goal was to produce a library for .NET, with minimal dependencies, that doesn't use Regex, and outperforms Regex.

    You can find it here:

    • github.com/dazinator/DotNet.Glob
    • https://www.nuget.org/packages/DotNet.Glob/

提交回复
热议问题