日期:2014-05-17  浏览次数:20518 次

求正则表达式 匹配a标签的值和href
HTML code

                                <dd>

                                    

                                    <a href="http://so.letv.com/list/c1_t-1_a-1_y-1_f_at_o1_p.html"

                                          id="iq">

                                        全部</a>

                                    

                                    <a href="http://so.letv.com/list/c1_t8_a-1_y-1_f_at_o1_p.html"

                                          class='on'  id="iq">

                                        剧情</a>

                                    

                                    <a href="http://so.letv.com/list/c1_t9_a-1_y-1_f_at_o1_p.html"

                                          id="iq">

                                        喜剧</a>

                                    

                                    <a href="http://so.letv.com/list/c1_t10_a-1_y-1_f_at_o1_p.html"

                                          id="iq">

                                        动作</a>

                                    

                                    <a href="http://so.letv.com/list/c1_t11_a-1_y-1_f_at_o1_p.html"

                                          id="iq">

                                        爱情</a>

                                    

                                    <a href="http://so.letv.com/list/c1_t12_a-1_y-1_f_at_o1_p.html"

                                          id="iq">

                                        恐怖</a>

                                    

                                    <a href="http://so.letv.com/list/c1_t13_a-1_y-1_f_at_o1_p.html"

                                          id="iq">

                                        动画</a>

                                    

                                    <a href="http://so.letv.com/list/c1_t14_a-1_y-1_f_at_o1_p.html"

                                          id="iq">

                                        战争</a>

                                    

                                    <a href="http://so.letv.com/list/c1_t15_a-1_y-1_f_at_o1_p.html"

                                          id="iq">

                                        惊悚</a>

                                    

                                    <a href="http://so.letv.com/list/c1_t16_a-1_y-1_f_at_o1_p.html"

                                          id="iq">

                                        悬疑</a>

                                    

                                    <a href="http://so.letv.com/list/c1_t17_a-1_y-1_f_at_o1_p.html"

                                          id="iq">

                                        奇幻</a>

                                    

                                    <a href="http://so.letv.com/list/c1_t18_a-1_y-1_f_at_o1_p.html"

                                          id="iq">

                                        犯罪</a>

                                    

                                    <a href="http://so.letv.com/list/c1_t19_a-1_y-1_f_at_o1_p.html"

                                          id="iq">

                                        冒险</a>

                                    

                                    <a href="http://so.letv.com/list/c1_t20_a-1_y-1_f_at_o1_p.html"

                                          id="iq">

                                        科幻