求一个正则表达式!!
<table>
<tr>
<td>
{tags:loop column= "1 "}
<table id= "table1 " width= "100% " style= "font-size:12px; " border= "0 "
<tr> <td> </td> </tr>
</table>
{/tags:loop}
</td>
<td>
{tags:loop column= "1 "}
<table id= "table2 " width= "100% " style= "font-size:12px; " border= "0 " align= "center " cellpadding= "0 " cellspacing= "0 ">
<tr> <td> </td> </tr>
</table>
{/tags:loop}
</td>
</tr>
</table>
================================
我是这样写的:{tags:loop[^{}]+?\}(.|\n)*{/tags:loop}
这种写法是错误的。。。我想写一个分别取出两个:{tags:loop column= "1 "}{/tags:loop}标签
真确取出后结果应该是这样:
{tags:loop column= "1 "}
<table id= "table1 " width= "100% " style= "font-size:12px; " border= "0 "
<tr> <td> </td> </tr>
</table>
{/tags:loop}
{tags:loop column= "1 "}
<table id= "table2 " width= "100% " style= "font-size:12px; " border= "0 " align= "center " cellpadding= "0 " cellspacing= "0 ">
<tr> <td> </td> </tr>
</table>
{/tags:loop}
请各位帮帮忙。。。万分感谢。。。
[解决办法]
另外如果是我说的第二种方法的话,那正则要改为:
{tags:loop[^{}]+?\}(.|\n)*?{/tags:loop}