当前位置: 代码迷 >> C# >> 怎么把字符串中的一对双引号放入模式中
  详细解决方案

怎么把字符串中的一对双引号放入模式中

热度:57   发布时间:2016-05-05 02:35:15.0
如何把字符串中的一对双引号放入模式中
字符串
<script type="text/javascript">$(document).ready(function(){});</script>

模式
string patten = @"<script\s+type=text/javascript>[\s\S]*?</script>"

------解决思路----------------------
@""""或者"\""
[email protected][email protected]
------解决思路----------------------

@"[email protected]""就像这样"
"[email protected]\"就可以了"
  相关解决方案