Задать вопрос

Как правильно сделать регулярное выражение?

Есть большой html код. В нём есть такие строчки
<param name="flashvars" value="uid=63235608&amp;vid=169257583&amp;oid=-73675894&amp;host=http://cs541207v4.vk.me/&amp;vtag=abbe4bbcd0&amp;ltag=l_789b4aaa&amp;vkid=169257583&amp;md_title=%D0%A2%D1%80%D0%B5%D0%B9%D0%BB%D0%B5%D1%80&amp;md_author=%D0%A1%D0%B5%D1%80%D0%B8%D0%B0%D0%BB+Showtime&amp;hd=3&amp;no_flv=1&amp;hd_def=1&amp;dbg_on=0&amp;t=&amp;duration=27&amp;thumb=http://cs541207.vk.me/u63235608/video/l_789b4aaa.jpg&amp;hash=216d1963f179e7d5a81f763d005adac5&amp;hash2=4c78d8f317813a9e&amp;angle=0&amp;img_angle=0&amp;repeat=0&amp;show_ads=0&amp;legal_owner=0&amp;puid1=2&amp;puid22=14&amp;puid37=2&amp;puid38=2&amp;puid45=0&amp;water_mark=&amp;can_rotate=1&amp;url240=http://cs541207v4.vk.me/u63235608/videos/abbe4bbcd0.240.mp4?extra=qxzgmY36um2vOm3XmmutORuGfjwo__AWURSQcoEHnUn8BE54fPVJICkTDFpLfQ3SIdYn-nRUqjtlHo6R8brKHjZ3ChfTcY3x&amp;url360=http://cs541207v4.vk.me/u63235608/videos/abbe4bbcd0.360.mp4?extra=qxzgmY36um2vOm3XmmutORuGfjwo__AWURSQcoEHnUn8BE54fPVJICkTDFpLfQ3SIdYn-nRUqjtlHo6R8brKHjZ3ChfTcY3x&amp;url480=http://cs541207v4.vk.me/u63235608/videos/abbe4bbcd0.480.mp4?extra=qxzgmY36um2vOm3XmmutORuGfjwo__AWURSQcoEHnUn8BE54fPVJICkTDFpLfQ3SIdYn-nRUqjtlHo6R8brKHjZ3ChfTcY3x&amp;url720=http://cs541207v4.vk.me/u63235608/videos/abbe4bbcd0.720.mp4?extra=qxzgmY36um2vOm3XmmutORuGfjwo__AWURSQcoEHnUn8BE54fPVJICkTDFpLfQ3SIdYn-nRUqjtlHo6R8brKHjZ3ChfTcY3x&amp;jpg=http://cs541207.vk.me/u63235608/video/l_789b4aaa.jpg&amp;ip_subm=1&amp;video_ext=1&amp;is_vk=0&amp;is_ext=1&amp;referrer=&amp;lang_add=%D0%94%D0%BE%D0%B1%D0%B0%D0%B2%D0%B8%D1%82%D1%8C+%D0%BA+%D1%81%D0%B5%D0%B1%D0%B5&amp;lang_added=%D0%94%D0%BE%D0%B1%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%BE+%D0%BA+%D1%81%D0%B5%D0%B1%D0%B5&amp;lang_share=%D0%A0%D0%B0%D1%81%D1%81%D0%BA%D0%B0%D0%B7%D0%B0%D1%82%D1%8C+%D0%B4%D1%80%D1%83%D0%B7%D1%8C%D1%8F%D0%BC&amp;lang_like=%D0%9C%D0%BD%D0%B5+%D0%BD%D1%80%D0%B0%D0%B2%D0%B8%D1%82%D1%81%D1%8F&amp;lang_volume_on=%D0%92%D0%BA%D0%BB%D1%8E%D1%87%D0%B8%D1%82%D1%8C+%D0%B7%D0%B2%D1%83%D0%BA&amp;lang_volume_off=%D0%A3%D0%B1%D1%80%D0%B0%D1%82%D1%8C+%D0%B7%D0%B2%D1%83%D0%BA&amp;lang_volume=%D0%93%D1%80%D0%BE%D0%BC%D0%BA%D0%BE%D1%81%D1%82%D1%8C&amp;lang_hdsd=%D0%A1%D0%BC%D0%B5%D0%BD%D0%B8%D1%82%D1%8C+%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%BE&amp;lang_fullscreen=%D0%9D%D0%B0+%D0%B2%D0%B5%D1%81%D1%8C+%D1%8D%D0%BA%D1%80%D0%B0%D0%BD&amp;lang_window=%D0%A1%D0%B2%D0%B5%D1%80%D0%BD%D1%83%D1%82%D1%8C&amp;lang_rotate=%D0%9F%D0%BE%D0%B2%D0%B5%D1%80%D0%BD%D1%83%D1%82%D1%8C&amp;lang_ads_link=%D0%A1%D0%B0%D0%B9%D1%82+%D1%80%D0%B5%D0%BA%D0%BB%D0%B0%D0%BC%D0%BE%D0%B4%D0%B0%D1%82%D0%B5%D0%BB%D1%8F&amp;lang_ads=%D0%A0%D0%B5%D0%BA%D0%BB%D0%B0%D0%BC%D0%B0&amp;lang_ads_skip=%D0%9F%D1%80%D0%BE%D0%BF%D1%83%D1%81%D1%82%D0%B8%D1%82%D1%8C+%D1%80%D0%B5%D0%BA%D0%BB%D0%B0%D0%BC%D1%83&amp;lang_ads_skip_time=%D0%9F%D1%80%D0%BE%D0%BF%D1%83%D1%81%D1%82%D0%B8%D1%82%D1%8C+%D1%80%D0%B5%D0%BA%D0%BB%D0%B0%D0%BC%D1%83+%D1%87%D0%B5%D1%80%D0%B5%D0%B7+%7Btime%7D&amp;lang_report_problem=%D0%A1%D0%BE%D0%BE%D0%B1%D1%89%D0%B8%D1%82%D1%8C+%D0%BE+%D0%BF%D1%80%D0%BE%D0%B1%D0%BB%D0%B5%D0%BC%D0%B5...&amp;video_play_hd=%D0%A1%D0%BC%D0%BE%D1%82%D1%80%D0%B5%D1%82%D1%8C+%D0%B2+%D0%B2%D1%8B%D1%81%D0%BE%D0%BA%D0%BE%D0%BC+%D0%BA%D0%B0%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%B5&amp;video_stop_loading=%D0%9E%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C+%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D1%83&amp;video_player_version=%D0%92%D0%9A%D0%BE%D0%BD%D1%82%D0%B0%D0%BA%D1%82%D0%B5+%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE+%D0%BF%D0%BB%D0%B5%D0%B5%D1%80+&amp;goto_orig_video=%D0%9F%D0%B5%D1%80%D0%B5%D0%B9%D1%82%D0%B8+%D0%BA+%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE%D0%B7%D0%B0%D0%BF%D0%B8%D1%81%D0%B8&amp;video_get_video_code=%D0%9A%D0%BE%D0%BF%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D1%82%D1%8C+%D0%BA%D0%BE%D0%B4+%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE&amp;video_load_error=%D0%92%D0%B8%D0%B4%D0%B5%D0%BE%D1%84%D0%B0%D0%B9%D0%BB+%D0%B5%D1%89%D0%B5+%D0%BD%D0%B5+%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%B8%D0%BB%D1%81%D1%8F+%D0%B8%D0%BB%D0%B8+%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80+%D1%81+%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE%D1%84%D0%B0%D0%B9%D0%BB%D0%BE%D0%BC+%D0%B2%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%BD%D0%BE+%D0%BD%D0%B5%D0%B4%D0%BE%D1%81%D1%82%D1%83%D0%BF%D0%B5%D0%BD&amp;video_get_current_url=%D0%9A%D0%BE%D0%BF%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D1%82%D1%8C+%D1%81%D1%81%D1%8B%D0%BB%D0%BA%D1%83+%D0%BD%D0%B0+%D0%BA%D0%B0%D0%B4%D1%80"></param>

Как достать всё из
<param name="flashvars" value="............"></param>
  • Вопрос задан
  • 2380 просмотров
Подписаться 3 Оценить Комментировать
Решения вопроса 2
DmitriyEntelis
@DmitriyEntelis
Думаю за деньги
<param\sname="flashvars"\svalue="([^"]+)"
Ответ написан
Комментировать
^<param name="flashvars" value="(.*)"><\/param>$
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
preg_match('/value=\"([^\"]+)\"/', %строка% ,$match);
print_r($match[1]);
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы