首页 新闻 赞助 找找看

急求正则,,比较麻烦..取div内容..

0
悬赏园豆:50 [待解决问题]
<DIV class=\"table mt25\"><DIV class=t_r><DIV class=td><A title=\"将爱情进行到底/Eternal Moment(2011)\" href=\"http://www.mtime.com/movie/129684/\" target=_blank><IMG class=img_box alt=\"将爱情进行到底/Eternal Moment(2011)\" src=\"http://img21.mtime.cn/mt/2011/01/07/092420.68147142_75X100.jpg\"></A> </DIV><DIV class=\"td pl9 c_666\"><DIV class=clearfix><SPAN class=fr><A href=\"http://movie.mtime.com/129684/plots.html\" target=_blank>剧情</A> | <A href=\"http://movie.mtime.com/129684/trailer.html\" target=_blank>预告片</A> | <A href=\"http://movie.mtime.com/129684/posters_and_images/\" target=_blank>图片</A> | <A href=\"http://movie.mtime.com/129684/comment.html\" target=_blank>影评</A> </SPAN><H4 class=px14><A title=\"将爱情进行到底/Eternal Moment(2011)\" href=\"http://www.mtime.com/movie/129684/\" target=_blank>将爱情进行到底</A> <SPAN class=\"normal px12 ml15\">&nbsp;&nbsp;中文版</SPAN> </H4></DIV><P class=\"line_dot mt9 mb9\">&nbsp;</P><!--具体影院-影讯列表--><DIV class=fl><P class=mb3><A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_129684/53924060.html\" target=_blank><SPAN class=c_a5>10:40</SPAN></A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_129684/53924061.html\" target=_blank><SPAN class=c_a5>11:20</SPAN></A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_129684/53924062.html\" target=_blank><SPAN class=c_a5>12:30</SPAN></A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_129684/53924063.html\" target=_blank><SPAN class=c_a5>13:10</SPAN></A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_129684/53924064.html\" target=_blank><SPAN class=c_a5>14:20</SPAN></A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_129684/53924065.html\" target=_blank>16:10</A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_129684/53924066.html\" target=_blank>18:00</A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_129684/53924067.html\" target=_blank>18:40</A><SPAN class=c_a5></SPAN> </P><P class=mb3><A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_129684/53924068.html\" target=_blank>19:50</A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_129684/53924069.html\" target=_blank>20:30</A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_129684/53924070.html\" target=_blank>21:40</A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_129684/53924071.html\" target=_blank>22:20</A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_129684/53924072.html\" target=_blank>23:30</A><SPAN class=c_a5></SPAN> </P></DIV><DIV class=clear>&nbsp;</DIV><P class=mt9><STRONG class=c_000>票价:</STRONG><SPAN class=c_666>80</SPAN></P></DIV></DIV></DIV><DIV class=\"table mt25\"><DIV class=t_r><DIV class=td><A title=\"青蜂侠/The Green Hornet(2011)\" href=\"http://www.mtime.com/movie/83331/\" target=_blank><IMG class=img_box alt=\"青蜂侠/The Green Hornet(2011)\" src=\"http://img21.mtime.cn/mt/2011/01/19/165633.71104384_75X100.jpg\"></A> </DIV><DIV class=\"td pl9 c_666\"><DIV class=clearfix><SPAN class=fr><A href=\"http://movie.mtime.com/83331/plots.html\" target=_blank>剧情</A> | <A href=\"http://movie.mtime.com/83331/trailer.html\" target=_blank>预告片</A> | <A href=\"http://movie.mtime.com/83331/posters_and_images/\" target=_blank>图片</A> | <A href=\"http://movie.mtime.com/83331/comment.html\" target=_blank>影评</A> </SPAN><H4 class=px14><A title=\"青蜂侠/The Green Hornet(2011)\" href=\"http://www.mtime.com/movie/83331/\" target=_blank>青蜂侠</A> <SPAN class=\"normal px12 ml15\">119分钟&nbsp;&nbsp;原版</SPAN> </H4></DIV><P class=\"line_dot mt9 mb9\">&nbsp;</P><!--具体影院-影讯列表--><SPAN class=\"fl icon_3d mr12 mt3\" title=3d>3d</SPAN><DIV class=fl><P class=mb3><A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_83331/53924033.html\" target=_blank><SPAN class=c_a5>10:30</SPAN></A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_83331/53924034.html\" target=_blank><SPAN class=c_a5>12:00</SPAN></A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_83331/53924035.html\" target=_blank><SPAN class=c_a5>12:45</SPAN></A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_83331/53924036.html\" target=_blank><SPAN class=c_a5>14:10</SPAN></A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_83331/53924037.html\" target=_blank>15:00</A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_83331/53924038.html\" target=_blank>16:20</A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_83331/53924039.html\" target=_blank>17:15</A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_83331/53924040.html\" target=_blank>19:30</A><SPAN class=c_a5></SPAN> </P><P class=mb3><A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_83331/53924041.html\" target=_blank>20:20</A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_83331/53924042.html\" target=_blank>21:45</A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_83331/53924043.html\" target=_blank>22:35</A><SPAN class=c_a5></SPAN> | <A href=\"http://theater.mtime.com/China_Guangdong_Province_Guangzhou_Tianhe/1096/movie_83331/53924044.html\" target=_blank>23:55</A><SPAN class=c_a5></SPAN> </P></DIV><DIV class=clear>&nbsp;</DIV><P class=mt9><STRONG class=c_000>票价:</STRONG><SPAN class=c_666>100</SPAN></P></DIV></DIV></DIV>

现在有一段源码,内包含两个我想要的div(<DIV class=\"table mt25\">),求正则取<DIV class=\"table mt25\">这个div内的源码内容..

问题补充: 不是两个,是多个
wlong的主页 wlong | 初学一级 | 园豆:150
提问于:2011-02-21 16:13
< >
分享
所有回答(2)
0

(?is)<div\s+class=\\"table mt25\\"[^>]*>(?><div[^>]*>(?<o>)|</div>(?<-o>)|(?:(?!</?div\b).)*)*(?(o)(?!))</div>

 

邀月 | 园豆:25475 (高人七级) | 2011-02-21 21:24
0

$(".table mt25")或$("源码").find(".table mt25") 

LoujaDy | 园豆:908 (小虾三级) | 2011-02-22 10:46
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册