在System.Text.RegularExpression命名空间里,有正则表达式方法。 代码如下:using System.Collections.Generic;using System.Text;using System.Text.RegularExpressions; namespace RegexDemo{ class Program { static void Main(string[] args) { Regex regex = new Regex(“China”, RegexOptions.IgnoreCase);
评论星级较低,若资源使用遇到问题可联系上传者,3个工作日内问题未解决可申请退款~