日期:2014-05-19  浏览次数:20985 次

正则 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> ";
------解决方案--------------------
是不是转义符引起的问题
------解决方案--------------------