正则及其常用小功能

1.返回字符串中子串出现的次数(返回str2在str1中重复出现的次数)
Regex.Matches(str1,str2).Count
原文地址:https://www.cnblogs.com/volts0302/p/6893301.html