.jpg)
我是用RegularExpression解決的~
當然還有很多其他的方法~就見仁見智囉!!!
.jpg)
using System.Text.RegularExpressions;
MatchCollection mc = null; Regex re = new Regex("要計算的字串"); mc = re.Matches("要被計算要計算的字串的字串要被要計算的字串計算的要計算的字串字串"); //mc.Count 即為出現的次數~啾咪*0*
.jpg)
ps.我想...用split() 或是 substring() 應該也可以做到這個功能=口=
不過改天有機會再說吧XDDDD
沒有留言:
張貼留言