using UnityEngine;
using System.Collections;
using System.Text.RegularExpressions;

public class Test : MonoBehaviour {

    void Awake () {
        string[] array = Regex.Split("AAA123BBB123CCC123""123"RegexOptions.IgnoreCase);
        foreach(string s in array){
            print (s);
        }
    }

}

-----------------------------------------------------------------------
輸出結果:

AAA
BBB
CCC






arrow
arrow
    全站熱搜

    黃彥霖 發表在 痞客邦 留言(0) 人氣()