以下の内容はhttps://baba-s.hatenablog.com/entry/2021/08/02/090000より取得しました。


【C#】glob のパターンマッチングを正規表現で使用する例

概要

var globPattern = "Assets/Textures/*.png";

var pattern = Regex
        .Escape( globPattern )
        .Replace( @"\*", ".*" )
        .Replace( @"\?", "." )
    ;

var isMatch = Regex.IsMatch
(
    input: "Assets/Textures/example.png",
    pattern: pattern
);

Console.WriteLine( isMatch );

参考サイト様




以上の内容はhttps://baba-s.hatenablog.com/entry/2021/08/02/090000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14