glob pattern matching in .NET

后端 未结 14 1446
遇见更好的自我
遇见更好的自我 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:14

    https://www.nuget.org/packages/Glob.cs

    https://github.com/mganss/Glob.cs

    A GNU Glob for .NET.

    You can get rid of the package reference after installing and just compile the single Glob.cs source file.

    And as it's an implementation of GNU Glob it's cross platform and cross language once you find another similar implementation enjoy!

提交回复
热议问题