2013年2月17日 星期日

[C#] 移除字串中非數字的字元

using System.Text.RegularExpressions;


string anyString = Regex.Replace(strIn, "[^0-9]", "");

1 則留言: