例えば数字を削る
be-styleさんのブログではC#のクラスを使ってそれを扱っている。
めんどくさいとおもったが、
インポートして
import System.Text.RegularExpressions;
これでいけた
Regex.Replace(str, "[0-9]", "");
参考:http://answers.unity3d.com/questions/19053/extract-number-from-string.html
例えば数字を削る
be-styleさんのブログではC#のクラスを使ってそれを扱っている。
めんどくさいとおもったが、
インポートして
import System.Text.RegularExpressions;
これでいけた
Regex.Replace(str, "[0-9]", "");
参考:http://answers.unity3d.com/questions/19053/extract-number-from-string.html