c#获取字符串中某段字符
摘要:
问:如字符串为<script>;lfjas..............函数名(afjka;kjf'....)</script>怎样获取<script>中的内容,答: stringstr="..............."; //内容随便写stringresult=""; Matchm=Regex.Match(str,"(?i)<script>.*?</script>"); if(m.Success) result=m.Value;问2:如果有很多<script& 阅读全文
posted @ 2012-11-15 10:45 五蕴 阅读(2811) 评论(0) 推荐(0)
浙公网安备 33010602011771号