Quote:
Originally Posted by The Geek
Yes. It will appear in the output if you have $p1 in your replace code.
|
After LONG time conversation we are on our final way
But the problem is - it doesn't work
May be you will try your-self?
- Post URL:
http://www.dailymotion.com/video/x9m63m_canarias-timelapse_creatio
- Regular expression
PHP Code:
[http://]*[a-z]*?[\.]?dailymotion\.[com|alice\.it]+/[\w/\-%]*video/([\w\-]+)
- Replacement
PHP Code:
<object width="$ameinfo[width]" height="$ameinfo[height]"><param name="movie" value="http://www.dailymotion.com/swf/$p1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.dailymotion.com/swf/$p1" type="application/x-shockwave-flash" width="$ameinfo[width]" height="$ameinfo[height]" allowFullScreen="true" allowScriptAccess="always"></embed></object>
- Extract destination data
Yes
- Embedding Regexp
PHP Code:
<link rel="canonical" href="/video/([a-z_0-9-]+)"
This one doesn't work
I made a test file and there it works...
PHP Code:
<?php
$test = " <link rel=\"canonical\" href=\"/video/x9m63m_canarias-timelapse_creation\" />";
$what = "<link rel=\"canonical\" href=\"/video/([a-z_0-9-]+)\"";
if (ereg ($what, $test, $regs)) {
echo "$regs[1]";
} else {
echo "Invalid date format!";
}
?>