<SPAN style="FONT-FAMILY: 宋体; FONT-SIZE: 9pt; mso-font-kerning: 0pt; mso-no-proof: yes" lang=EN-US> ip</span>
<SPAN style="FONT-FAMILY: 新宋体; COLOR: green; FONT-SIZE: 9pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">声明变量</SPAN>
<SPAN style="COLOR: blue">if</SPAN>
<SPAN style="">if</SPAN>
<SPAN style="COLOR: blue" lang=EN-US>if</SPAN>
我要匹配出:<span></span>标签里没有color的所有内容,如果没有color连Style也匹配
匹配结果如下:
<SPAN style="FONT-FAMILY: 宋体; FONT-SIZE: 9pt; mso-font-kerning: 0pt; mso-no-proof: yes" lang=EN-US> ip</span>
<SPAN style="FONT-FAMILY: 新宋体; COLOR: green; FONT-SIZE: 9pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes" lang=EN-US>声明变量</SPAN>
<SPAN style="COLOR: blue">if</SPAN>
<SPAN style="COLOR: blue" lang=EN-US>if</SPAN>正则表达方式
<SPAN style="FONT-FAMILY: 新宋体; COLOR: green; FONT-SIZE: 9pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">声明变量</SPAN>
<SPAN style="COLOR: blue">if</SPAN>
<SPAN style="">if</SPAN>
<SPAN style="COLOR: blue" lang=EN-US>if</SPAN>
我要匹配出:<span></span>标签里没有color的所有内容,如果没有color连Style也匹配
匹配结果如下:
<SPAN style="FONT-FAMILY: 宋体; FONT-SIZE: 9pt; mso-font-kerning: 0pt; mso-no-proof: yes" lang=EN-US> ip</span>
<SPAN style="FONT-FAMILY: 新宋体; COLOR: green; FONT-SIZE: 9pt; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes" lang=EN-US>声明变量</SPAN>
<SPAN style="COLOR: blue">if</SPAN>
<SPAN style="COLOR: blue" lang=EN-US>if</SPAN>正则表达方式
解决方案 »
- 快哭了--静态新闻分页
- 求救
- 不知道验证码的这个问题大家注意到没.我是个爱刨根问底的人
- asp.net 可不可以上传整个文件夹!
- Eval("code") 中的code应该写些什么东西啊?
- 如果获取页面上所有TEXTBOX控件,为一个TEXTBOX数组
- 请问各位大哥,如何在DataList的EditItemTemplate项里面实现两个DropDownList的连动(急)
- 最近自已用C#写了一个asp.net代码生成工具,不知道哪位朋友愿意测试一下.
- 无锡的ASP.NET朋友,有时间一起做项目吗?
- 在线等。。。。。Chart控件怎么显示线条的提示!!!!!!!!
- 网站模仿咨询
- mvc2.0添加视图时视图数据类列表是空的怎么解决
var reg = /<span\sstyle="(.*?)(color:\s*\w+;?)?(((?!color).)*?)>/gi;
var result;
while ((result = reg.exec(str)) != null)
{
alert(result[1]+result[3])
}