Проблема с регуляркой

  • Автор темы Автор темы vipuncle
  • Дата начала Дата начала

vipuncle

A-Parser Pro License
A-Parser Pro
Пытаюсь спарсить урл из такого куска кода
Код:
                    <div class="result">
                        <span class="title">
                            <a href="/redirect/vNMqMB99gyt9seIrqkDv4KzXQgidgqbCPyc4mVnkRcY%3D/https%3A%2F%2Fwww.nytimes.com%2F2017%2F11%2F23%2Fworld%2Feurope%2Frussia-vladimir-putin-liberals.html?position=8&query=putin&t=web&l=en" >Why <b>Putin</b>’s Foes Deplore U.S. Fixation on Election ...</a>
                        </span>
                        <p class="url">www.nytimes.com/2017/11/23/world/europe/russia-vladimir-putin-liberals.html</p>
                        <p> “Enough already!” one critic of President Vladimir V. <b>Putin</b> said, worried that the accusations were helping the Kremlin polish the president’s … </p>
                    </div>
Регулярка
Код:
class="url">([^"]+)</p>

В итоге
Код:
www.nytimes.com/2017/11/23/world/europe/russia-vladimir-putin-liberals.html</p>
                        <p> “Enough already!” one critic of President Vladimir V. <b>Putin</b> said, worried that the accusations were helping the Kremlin polish the president’s …

Подскажите где косяк!?
 
или так
Код:
class="url">(.+?)<
 
Последнее редактирование:
Назад
Верх