Código PHP:
<?
function unBBcode($texto){
$texto = html_entity_decode($texto);
$a = array(
"/\<object style=\"height: 225px; width: 400px\"><br \/\>
<param name=\"movie\" value=\"http:\/\/vimeo.com\/moogaloop.swf?clip_id=(.*?)\&server=vimeo.com&show_title=1&show_byline=0&show_portrait=0&color=00adef&fullscreen=1&autoplay=0&loop=0\"><br \/\>
<param name=\"allowFullScreen\" value=\"true\"><br \/\>
<param name=\"allowScriptAccess\" value=\"always\"><br \/\>
<embed src=\"http:\/\/vimeo.com\/moogaloop.swf?clip_id=(.*?)\&server=vimeo.com&show_title=1&show_byline=0&show_portrait=0&color=00adef&fullscreen=1&autoplay=0&loop=0\" type=\"application\/x-shockwave-flash\" allowfullscreen=\"true\" allowScriptAccess=\"always\" width=\"400\" height=\"225\"><\/object\>/is"
);
$b = array(
"[vimeo]$1[/vimeo]"
);
$texto = preg_replace($a, $b, $texto);
return $texto;
}
$text = '<object style="height: 225px; width: 400px"><br />
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=1234&server=vimeo.com&show_title=1&show_byline=0&show_portrait=0&color=00adef&fullscreen=1&autoplay=0&loop=0"><br />
<param name="allowFullScreen" value="true"><br />
<param name="allowScriptAccess" value="always"><br />
<embed src="http://vimeo.com/moogaloop.swf?clip_id=1234&server=vimeo.com&show_title=1&show_byline=0&show_portrait=0&color=00adef&fullscreen=1&autoplay=0&loop=0" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="400" height="225"></object>';
$test = unbbcode($text);
print $test;
?>