当前位置:编程学习 > C#/ASP.NET >>

求正则

匹配字符串中不能有 "' html标签
不知道怎么些  求助


 string pattern = "";
            string str = "11'asdasd";
            Console.WriteLine(Regex.IsMatch(str, pattern));
--------------------编程问答-------------------- 没看懂问题 你一下例子 比如说源字符 和匹配后的字符 --------------------编程问答-------------------- 直接 str.Contains("'")||str.Contains("\"")
补充:.NET技术 ,  C#
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,