2018年6月9日 星期六

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

using System.Text.RegularExpressions;


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

沒有留言:

張貼留言