首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

正则 The Regulator 有关问题

2012-03-21 
正则 The Regulator 问题我写的正则放在TheRegulater里面是正常的可是换到代码哪里就不正常了td\snowrap\

正则 The Regulator 问题
我写的正则
放在The   Regulater里面是正常的

可是换到代码哪里就不正常了
<td\snowrap\swidth=\ "12%\ "\sclass=\ "caption\ "> ([\w-\W]*?) </td> [\w-\W]{5,20} <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "\sbgcolor=\ "[#]e7e7e7\ "> ([\w-\W]*?) </td> [\w-\W]{5,7} <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "\s> ([\w-\W]*?) </td> [\w-\W]{5,7} <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "\sbgcolor=\ "[#]e7e7e7\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "\sbgcolor=\ "[#]e7e7e7\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "\sbgcolor=\ "[#]e7e7e7\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "\sbgcolor=\ "[#]e7e7e7\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "\sbgcolor=\ "[#]e7e7e7\ "> ([\w-\W]*?) </td>




[解决办法]
@ " <td\snowrap\swidth=\ "12%\ "\sclass=\ "caption\ "> ([\w-\W]*?) </td> [\w-\W]{5,20} <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "\sbgcolor=\ "[#]e7e7e7\ "> ([\w-\W]*?) </td> [\w-\W]{5,7} <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "\s> ([\w-\W]*?) </td> [\w-\W]{5,7} <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "\sbgcolor=\ "[#]e7e7e7\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "\sbgcolor=\ "[#]e7e7e7\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "\sbgcolor=\ "[#]e7e7e7\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "\sbgcolor=\ "[#]e7e7e7\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "> ([\w-\W]*?) </td> [\w-\W]*? <td\salign=\ "right\ "\swidth=\ "8%\ "\snowrap\sclass=\ "copy\ "\sbgcolor=\ "[#]e7e7e7\ "> ([\w-\W]*?) </td> ";
[解决办法]
是不是转义符引起的问题
------解决方案--------------------


@转义
[解决办法]
不正常指的是什么?还有你是怎么用这个正则的

热点排行