正規表現 - Himeyama/Unity_memo GitHub Wiki

Regex クラス

using System;
using System.Text.RegularExpressions;

class Test{
    static void Main(){
        string str = "10.234,5.678";
        Regex re = new Regex(@"(\d+\.\d+),(\d+\.\d+)");
        foreach(Group g in re.Match(str).Groups){
            Console.WriteLine("{0}", g);
        }
    }
}

GroupCollection クラス

検索で一致したグループのセット。

m.Groups

Match クラス

マッチしたかどうか

if(m.Success)
    Debug.Log("マッチした");