
07-14-2009, 07:51 AM
|
 |
|
|
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by The Geek
Mak,
While running the embed regexp, it already has the entire page contents,
|
The Geek, I understand this one.
Quote:
Originally Posted by The Geek
but for right now it will grab whatever the result is and store it as a parameter for the embed code.
|
And this one two.
Quote:
Originally Posted by The Geek
It would really help if you could elaborate on what you are trying to accomplish
|
I already have posted my test case here https://vborg.vbsupport.ru/showthread.php?p=1844996.
Ok. Lets make steps
Step 1:
- Regular expression
PHP Code:
http://[w\.]*dailymotion\.[com|alice\.it]+/[\w/\-%]*video/([\w\-]+)
- URL is posted:
http://www.dailymotion.com/video/x9m63m_canarias-timelapse_creatio
- I don't want to use "x9m63m_canarias-timelapse_creatio" from the URL
Is step 1 is clear? Then continue.
Step 2:
- The HTML Source of above URL has such code:
HTML Code:
<link rel="stylesheet" href="http://ak.style.dailymotion.com/css/gen/widget/pack/baseskin-prod.css.v1198007225" />
<link rel="canonical" href="/video/x9m63m_canarias-timelapse_creation" />
<link rel="image_src" type="image/jpeg" href="http://www.dailymotion.com/thumbnail/160x120/video/x9m63m_canarias-timelapse_creation" />
<link rel="video_src" href="http://www.dailymotion.com/swf/x9m63m?autoPlay=1" />
<link rel="thumbnail" type="image/jpeg" href="/thumbnail/160x120/video/x9m63m_canarias-timelapse_creation" />
- I want to get one line from it (HTML Source) with Embedding Regexp and pass the result to Replacement.
Is step 2 is clear? Then continue.
Step 3:
- I set Extract destination data to Yes
- I set Embedding Regexp with:
Code:
<link rel="canonical" href="/video/([a-z_0-9-]+)"
- It doesn't work...
Is step 3 is clear?
|