// YouTube
$passiveVid[] = array (
'string' => '#(?:<a[^\<\>]+href=\")?(?:
http://)?(?:[a-zA-Z]{1,4}\.)?youtube.com/watch\?v=(.{11}?)[^"]*(?:\"[^\<\>]*>)?([^\<\>]*)(?:</a>)?#',
'replacement' => '$PASSIVETITLE = $matches[2]; $PASSIVEEMBED = \'<object width="640" height="360"><param name="movie" value="http://www.youtube.com/v/\'.$matches[1].\'"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\'.$matches[1].\'" type="application/x-shockwave-flash" wmode="transparent" width="
640" height="
360"></embed></object>\'; return "'.$customstring.'";',
'id' => 1
);
$passiveVid[] = array (
'string' => '#\[youtube\]([^\[\]]+)\[/youtube\]#',
'replacement' => 'return \'<object width="
640" height="
360"><param name="movie" value="http://www.youtube.com/v/\'.$matches[1].\'"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\'.$matches[1].\'" type="application/x-shockwave-flash" wmode="transparent" width="
640" height="
360"></embed></object>\';',
'id' => 1
);