以下の内容はhttps://baba-s.hatenablog.com/entry/2020/05/06/001600より取得しました。


【C#】文字列の末尾の数値を抽出する正規表現

概要

using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;

public static class Example
{
    [MenuItem( "Tools/Hoge" )]
    private static void Hoge()
    {
        var input   = "Item001";
        var pattern = "([0-9]*$)";
        var regex   = Regex.Match( input, pattern );

        Debug.Log( regex.Success );
        Debug.Log( regex.Groups[ 1 ] );
    }
}



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

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