И снова регулярка((( Прошу помощи!

iskrakovrov

Client
Регистрация
28.03.2015
Сообщения
532
Благодарностей
171
Баллы
43

Обращаем Ваше внимание на то, что данный пользователь заблокирован.
Не рекомендуем проводить с iskrakovrov какие-либо сделки.

НЕ получается без мусора(((

https://www.facebook.com/evelina.khromtchenko/
Вытянуть адреса ссылок на посты (это которые дата создания сообщения)

Уже даже без экспериментов.. тупо в конструкторе (?<="_5pcq"\ href=").*?/\?type=3(?="\ rel="theater") и один фиг с мусором....
Спасибо!
 
Последнее редактирование:

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 241
Благодарностей
5 847
Баллы
113
Код:
(?<=<a\ class="_5pcq"\ href=").*?/(?=\?type=3"\ rel="theater")
 
  • Спасибо
Реакции: iskrakovrov

iskrakovrov

Client
Регистрация
28.03.2015
Сообщения
532
Благодарностей
171
Баллы
43

Обращаем Ваше внимание на то, что данный пользователь заблокирован.
Не рекомендуем проводить с iskrakovrov какие-либо сделки.

Код:
(?<=<a\ class="_5pcq"\ href=").*?/(?=\?type=3"\ rel="theater")
Не подходит - мусор((

Код:
/evelina.khromtchenko/posts/1026028250769307" target=""><abbr title="Tuesday, February 9, 2016 at 3:08pm" data-utime="1455023281" data-shorten="1" class="_5ptz timestamp livetimestamp"><span id="js_3" class="timestampContent">1 hr</span></abbr></a></span></span><span role="presentation" aria-hidden="true"> · </span><a data-hover="tooltip" aria-label="Public" class="uiStreamPrivacy inlineBlock fbStreamPrivacy fbPrivacyAudienceIndicator _5pcq" href="#" role="button"><i class="lock img sp_gdfeqFK7zfZ sx_7797f4"></i></a></div></div></div></div></div></div></div><div id="js_4" class="_5pbx userContent" data-ft="{&quot;tn&quot;:&quot;K&quot;}"><p>Старлетки в рекламном ролике весенне-летних коллекций Miu Miu. Итак, в ролях будущие звезды по мнению команды Дома: Милли Брэйди, Джулия Гарнер, Матильда Лутс и Индия Менуэз</p><div class="_5wpt"></div></div><div class="_3x-2"><div data-ft="{&quot;tn&quot;:&quot;H&quot;}"><div class="mtm"><div id="u_0_1s" class="_6m2 _1zpr clearfix _dcs _4_w4 _5cwb" data-ft="{&quot;tn&quot;:&quot;H&quot;}"><div class="clearfix _2r3x"><div class="lfloat _ohe"><span class="_3m6-"><div class="_6ks" data-ft="{&quot;tn&quot;:&quot;F&quot;}"><div id="u_0_1x"><a class="_6kt _6l- __c_" aria-label="Miu Miu Spring Summer 2016 Advertising Campaign" ajaxify="/ajax/flash/expand_inline.php?max_width=470&amp;selector=%5E._6m2&amp;target_div=u_0_1x&amp;share_id=833265120115797&amp;user_share_id=1026028250769307" href="https://www.facebook.com/l.php?u=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuJhHPSCfaxg&amp;h=IAQE51g95&amp;enc=AZPRRL6gZx0K6czAQwAAiXuBgVDkYVjD3Q8tNbvCWBZBO5gstrPh2QIZ2RiXvTMEnZV3RKQ18Pd9x5wKxJiZEYCBBObkVNoG-XZyyBtOSNiDEcEH5M1tGa8t4RVZegosqROAiqfdXe0ttmTki9OtIiw8jX7mpAHSvI58pxufbinCEezZJI8TPXfeUw_2wZ40lDzUP6QcuBMAjyBBolqvuwwu&amp;s=1" rel="nofollow async" target="_blank" onmouseover="LinkshimAsyncLink.swap(this, &quot;https:\/\/www.youtube.com\/watch?v=uJhHPSCfaxg&quot;);" onclick="LinkshimAsyncLink.referrer_log(this, &quot;https:\/\/www.youtube.com\/watch?v=uJhHPSCfaxg&quot;, &quot;\/si\/ajax\/l\/render_linkshim_log\/?u=https\u00253A\u00252F\u00252Fwww.youtube.com\u00252Fwatch\u00253Fv\u00253DuJhHPSCfaxg&amp;h=IAQE51g95&amp;render_verification=0&amp;enc=AZPRRL6gZx0K6czAQwAAiXuBgVDkYVjD3Q8tNbvCWBZBO5gstrPh2QIZ2RiXvTMEnZV3RKQ18Pd9x5wKxJiZEYCBBObkVNoG-XZyyBtOSNiDEcEH5M1tGa8t4RVZegosqROAiqfdXe0ttmTki9OtIiw8jX7mpAHSvI58pxufbinCEezZJI8TPXfeUw_2wZ40lDzUP6QcuBMAjyBBolqvuwwu&amp;d&quot;);"><div class="uiScaledImageContainer _6m5 fbStoryAttachmentImage" style="width:158px;height:158px;"><img class="scaledImageFitWidth img" src="https://external-waw1-1.xx.fbcdn.net/safe_image.php?d=AQBDAF_th8AOoLhJ&amp;w=158&amp;h=158&amp;url=https%3A%2F%2Fi.ytimg.com%2Fvi%2FuJhHPSCfaxg%2Fmaxresdefault.jpg&amp;cfs=1&amp;upscale=1&amp;sx=343&amp;sy=0&amp;sw=842&amp;sh=842&amp;ext=png2jpg" alt="" width="158" height="158"></div><i class="_6ku"></i><span class="img _55ym _55yq _55yp _5tqs _5d9- _5epl" aria-label="Loading..." aria-busy="1"></span></a></div></div></span></div><div class="_42ef"><span class="_3c21"><div data-ft="{&quot;tn&quot;:&quot;*J&quot;}" class="_3ekx"><div class="_6m3"><div class="mbs _6m6"><a href="https://www.facebook.com/l.php?u=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DuJhHPSCfaxg&amp;h=tAQHb6N1j&amp;enc=AZOs1By0JtPiVcwsDamiBqYKe-Xzg5zwgy1Fxra7JkTnS3AwkIdkHa07qtUyxT-wC-TF7ctdoSEGmqMTbEkTZjDBSNeF6qQg9Ixdn83E2XzbKJge0t-jan1L7Mx_ONDc_ULnyXKtg04Whj-y6xGIVBOj1th3Zl6mKWgk6MjxhhxfNE2-h08ri6iXVWbpyTqpHQxnXKrWGwPqy4eVCHOxlKKk&amp;s=1" rel="nofollow" target="_blank" onmouseover="LinkshimAsyncLink.swap(this, &quot;https:\/\/www.youtube.com\/watch?v=uJhHPSCfaxg&quot;);" onclick="LinkshimAsyncLink.referrer_log(this, &quot;https:\/\/www.youtube.com\/watch?v=uJhHPSCfaxg&quot;, &quot;\/si\/ajax\/l\/render_linkshim_log\/?u=https\u00253A\u00252F\u00252Fwww.youtube.com\u00252Fwatch\u00253Fv\u00253DuJhHPSCfaxg&amp;h=tAQHb6N1j&amp;render_verification=0&amp;enc=AZOs1By0JtPiVcwsDamiBqYKe-Xzg5zwgy1Fxra7JkTnS3AwkIdkHa07qtUyxT-wC-TF7ctdoSEGmqMTbEkTZjDBSNeF6qQg9Ixdn83E2XzbKJge0t-jan1L7Mx_ONDc_ULnyXKtg04Whj-y6xGIVBOj1th3Zl6mKWgk6MjxhhxfNE2-h08ri6iXVWbpyTqpHQxnXKrWGwPqy4eVCHOxlKKk&amp;d&quot;);">Miu Miu Spring Summer 2016 Advertising Campaign</a></div><div class="_6m7">VIDEO MIU MIU ADV SS16 CREDITS: - PHOTOGRAPHED BY STEVEN MEISEL - STARRING MILLIE BRADY, JULIA GARNER, MATILDA LUTZ &amp;…</div><div class="_59tj"><div><div class="_6lz _6mb ellipsis">youtube.com</div><div class="_5tc6"></div></div></div></div></div></span></div></div></div></div></div></div></div><div><form rel="async" class="commentable_item" method="post" data-ft="{&quot;tn&quot;:&quot;]&quot;}" action="/ajax/ufi/modify.php" id="u_0_21" onsubmit="return window.Event &amp;&amp; Event.__inlineSubmit &amp;&amp; Event.__inlineSubmit(this,event)"><input name="charset_test" value="€,´,€,´,水,Д,Є" type="hidden"><input name="fb_dtsg" value="AQE-SykiQdWA:AQF3EarL3ac7" autocomplete="off" type="hidden"><input autocomplete="off" name="ft_ent_identifier" value="1026028250769307" type="hidden"><input autocomplete="off" name="data_only_response" value="1" type="hidden"><div class="_sa_ _5vsi"><div class="_37uu"><div data-reactroot=""><div class="_3399 _a7s"><div class="_3m9g"><div class="_40yk"><span class="_6vh"><span aria-label="Liking and commenting as Viktor Maystrenko" data-hover="tooltip"><span><a style="max-width: 200px;" href="#" type="button" class="_4z8- _55pi _2agf _4jy0 _4jy3 _517h _51sy _59pe _42ft"><span class="_55pe"><img class="img" src="https://scontent-waw1-1.xx.fbcdn.net/hprofile-xaf1/v/t1.0-1/c0.0.32.32/p32x32/11070914_1387232704939619_1067572497558364227_n.jpg?oh=fbafa3e2aaae772258e3f80c7a3689bf&amp;oe=5735773D" width="16" height="16"><span></span></span><i class="_3-99 img sp_7mWYLh9iwJK sx_85ff34"></i></a></span></span></span></div></div><div class="_524d"><div class="_42nr"><span><a data-ft="{&quot;tn&quot;:&quot;>&quot;}" aria-live="polite" aria-label="Like this" role="button" href="#" data-testid="fb-ufi-likelink" class="_48-k UFILikeLink">Like</a></span><span><a data-ft="{ &quot;tn&quot;: &quot;S&quot;, &quot;type&quot;: 24 }" title="Leave a comment" href="#" role="button" class="comment_link _5yxe">Comment</a></span><span><a title="Send this to friends or post it on your timeline." data-ft="{ &quot;tn&quot;: &quot;J&quot;, &quot;type&quot;: 25 }" class="share_action_link _5f9b" href="#"><span>Share</span><span aria-busy="true" aria-label="Loading..." class="UFIShareLinkSpinner _1wfk img _55ym _55yn _55yo _5tqs _5d9-"></span></a></span></div></div></div></div></div></div><div class="uiUfi UFIContainer _5pc9 _5vsj _5v9k" id="u_0_27"><div class="UFIList" data-reactroot=""><div class="UFIRow UFILikeSentence _4204"><div class="clearfix"><div class="_ohf rfloat"></div><div class=""><div class="UFILikeSentenceText"><span><a role="button" data-tooltip-uri="/ajax/like/tooltip.php?comment_fbid=1026028250769307&amp;comment_from=100009587079205&amp;seen_user_fbids=true&amp;av=100009587079205" data-tooltip-alignh="center" data-hover="tooltip" href="/browse/likes?id=1026028250769307&amp;actorid=107364475969027" ajaxify="/ajax/browser/dialog/likes?id=1026028250769307&amp;actorid=107364475969027" rel="dialog" class="UFINoWrap" data-testid="n_other_people_link">7 people</a><span> like this.</span></span></div></div></div></div><h6 class="accessible_elem">Comments</h6><div data-ft="{&quot;tn&quot;:&quot;[&quot;}" class="UFIRow _4oep UFIAddComment UFIAddCommentWithPhotoAttacher _2o9m"><div class="UFIMentionsInputWrap UFIStickersEnabledInput clearfix"><div class="_ohe lfloat"><div class="UFIReplyActorPhotoWrapper img _8o _8r UFIImageBlockImage"><img src="https://scontent-waw1-1.xx.fbcdn.net/hprofile-xaf1/v/t1.0-1/c0.0.32.32/p32x32/11070914_1387232704939619_1067572497558364227_n.jpg?oh=fbafa3e2aaae772258e3f80c7a3689bf&amp;oe=5735773D" class="img UFIActorImage _54ru img" alt="Viktor Maystrenko"></div></div><div class=""><div class="UFIImageBlockContent _42ef _8u"><div class="UFICommentContainer"><div class="UFIInputContainer"><div><div class="UFIAddCommentInput _1osb _1osc"><input name="add_comment_text" class="_1osa mentionsHidden"><span>Write a comment...</span></div></div><div class="UFICommentAttachmentButtons clearfix"><div aria-label="Attach a Photo" data-tooltip-alignh="center" data-hover="tooltip" class="UFIPhotoAttachLinkWrapper _m"><i class="UFICommentPhotoIcon"><input aria-label="Attach a Photo" title="Attach a Photo" name="file" class="_n" accept="image/*" type="file"></i></div><a href="#" data-tooltip-alignh="center" data-hover="tooltip" class="UFICommentStickerButton" aria-label="Post a sticker"><div class="UFICommentStickerIcon" tabindex="0"></div></a></div></div></div></div></div></div></div><div></div></div></div></form></div></div></div></div><div aria-labelledby="js_5 js_6 js_7 js_8" class="_4-u2 mbm _5jmm _5pat _5v3q _4-u8" data-ft="{&quot;top_level_post_id&quot;:&quot;1026069207431878&quot;,&quot;tl_objid&quot;:&quot;1026069207431878&quot;,&quot;fbfeed_location&quot;:36}" data-time="1455016891" id="u_0_16"><div class="_3ccb" data-gt="{&quot;type&quot;:&quot;click2canvas&quot;,&quot;fbsource&quot;:703,&quot;ref&quot;:&quot;nf_generic&quot;}" id="u_0_1d"><div></div><div class="userContentWrapper _5pcr" role="article" aria-label="Story"><div class="_1dwg"><div class="_4r_y"><div class="_6a uiPopover _5pbi _cmw _5v56 _b1e" id="u_0_1e"><a class="_4xev _p" aria-label="Story options" href="#" aria-haspopup="true" aria-expanded="false" rel="toggle" role="button" id="u_0_1o"></a></div></div><div id="js_5" class="_4gns accessible_elem"></div><div class="clearfix _5x46"><a class="_5pb8 _29h _303" href="https://www.facebook.com/evelina.khromtchenko/?ref=nf" aria-hidden="true" tabindex="-1" data-ft="{&quot;tn&quot;:&quot;\u003C&quot;}" data-hovercard="/ajax/hovercard/page.php?id=107364475969027"><div class="_38vo"><img class="_s0 _5xib _5sq7 _44ma _rw img" src="https://scontent-waw1-1.xx.fbcdn.net/hprofile-xpa1/v/t1.0-1/p50x50/10924733_913007665404700_7312279633974088089_n.png?oh=fbb36d2965c07aa2b81c06a042ab53f5&amp;oe=5728EAA9" alt=""></div></a><div class="_3dp _29k"><div><div class="_6a"><div class="_6a _6b" style="height:40px"></div><div class="_6a _6b"><h5 id="js_6" class="_5pbw _11dd" data-ft="{&quot;tn&quot;:&quot;C&quot;}"><span class="fwn fcg"><span class="fcg"><span class="fwb"><a class="profileLink" href="https://www.facebook.com/evelina.khromtchenko/" data-ft="{&quot;tn&quot;:&quot;k&quot;}" data-hovercard="/ajax/hovercard/page.php?id=107364475969027">Evelina Khromtchenko. C'est officiel!</a></span> added <a href="/evelina.khromtchenko/posts/1026069207431878">3 new photos</a>.</span></span></h5><div class=""><div class="_5pcp"><span><span class="fsm fwn fcg"><a class="_5pcq" href="/evelina.khromtchenko/posts/1026069207431878" target=""><abbr title="Tuesday, February 9, 2016 at 1:21pm" data-utime="1455016891" data-shorten="1" class="_5ptz timestamp livetimestamp"><span id="js_7" class="timestampContent">3 hrs</span></abbr></a></span></span><span role="presentation" aria-hidden="true"> · </span><a data-hover="tooltip" aria-label="Public" class="uiStreamPrivacy inlineBlock fbStreamPrivacy fbPrivacyAudienceIndicator _5pcq" href="#" role="button"><i class="lock img sp_gdfeqFK7zfZ sx_7797f4"></i></a></div></div></div></div></div></div></div><div id="js_8" class="_5pbx userContent" data-ft="{&quot;tn&quot;:&quot;K&quot;}"><p>11 идей подарков к Дню всех влюбленных на <a href="http://l.facebook.com/l.php?u=http%3A%2F%2Fevelinakhromtchenko.com%2F&amp;h=0AQFSxYR2AQH7umxUliYkdUlhfByEja2ceDzCs5XwHA-7-w&amp;enc=AZPXxSRTGLWIFbuqGkPFsz6BCSXKBLLgzABFsrMMZOga3VRjHLbOJylRaFZ9wDlIFdVtzppK4r_ifDV8hjWgw2b8jifiTAIpuhZGaUG6Hq7PHTsuH7qQjqY01Yf7AyHPCFJUaiIBW7nkRP3P2evXcIMsMecVruNjHxauYp6uDOuzYL4hhGTvgFxZdmNjxxkNM4RztyRev8xMLsWkgbDSoFTm&amp;s=1" target="_blank" rel="nofollow" onmouseover="LinkshimAsyncLink.swap(this, &quot;http:\/\/evelinakhromtchenko.com\/&quot;);" onclick="LinkshimAsyncLink.referrer_log(this, &quot;http:\/\/evelinakhromtchenko.com\/&quot;, &quot;\/si\/ajax\/l\/render_linkshim_log\/?u=http\u00253A\u00252F\u00252Fevelinakhromtchenko.com\u00252F&amp;h=0AQFSxYR2AQH7umxUliYkdUlhfByEja2ceDzCs5XwHA-7-w&amp;render_verification=0&amp;enc=AZPXxSRTGLWIFbuqGkPFsz6BCSXKBLLgzABFsrMMZOga3VRjHLbOJylRaFZ9wDlIFdVtzppK4r_ifDV8hjWgw2b8jifiTAIpuhZGaUG6Hq7PHTsuH7qQjqY01Yf7AyHPCFJUaiIBW7nkRP3P2evXcIMsMecVruNjHxauYp6uDOuzYL4hhGTvgFxZdmNjxxkNM4RztyRev8xMLsWkgbDSoFTm&amp;d&quot;);">evelinakhromtchenko.com</a> в разделе Шопинг</p><div class="_5wpt"></div></div><div class="_3x-2"><div data-ft="{&quot;tn&quot;:&quot;H&quot;}"><div class="mtm"><div class="_2a2q" style="width:470px; height:470px;"><a class="_5dec _xcx" href="/evelina.khromtchenko/photos/pcb.1026069207431878/1026069174098548/
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 241
Благодарностей
5 847
Баллы
113
ну как же, первое совпадение вполне подходит.
 

iskrakovrov

Client
Регистрация
28.03.2015
Сообщения
532
Благодарностей
171
Баллы
43

Обращаем Ваше внимание на то, что данный пользователь заблокирован.
Не рекомендуем проводить с iskrakovrov какие-либо сделки.

Так толку-то от первого((( Первое беспроблемно(((
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 241
Благодарностей
5 847
Баллы
113

iskrakovrov

Client
Регистрация
28.03.2015
Сообщения
532
Благодарностей
171
Баллы
43

Обращаем Ваше внимание на то, что данный пользователь заблокирован.
Не рекомендуем проводить с iskrakovrov какие-либо сделки.

как собрать скажем первые Х ссылок на Х первых постов.
 

zennomoves

Client
Регистрация
05.12.2011
Сообщения
235
Благодарностей
72
Баллы
28

iskrakovrov

Client
Регистрация
28.03.2015
Сообщения
532
Благодарностей
171
Баллы
43

Обращаем Ваше внимание на то, что данный пользователь заблокирован.
Не рекомендуем проводить с iskrakovrov какие-либо сделки.

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
  • Спасибо
Реакции: GIN38

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)