glob pattern matching in .NET

后端 未结 14 1445
遇见更好的自我
遇见更好的自我 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条回答
  •  猫巷女王i
    2020-11-29 02:14

    I don't know if the .NET framework has glob matching, but couldn't you replace the * with .*? and use regexes?

提交回复
热议问题