Hi everybody, for complient to the W3C, the script must be like :

$pattern = array('#\[b\](.*?)\[/b\]#s',
                     '#\[i\](.*?)\[/i\]#s',
                     '#\[u\](.*?)\[/u\]#s',
                     '#\[youtube\]http://www.youtube.com/watch\?v=(.*?)\[/youtube\]#s',
                     '#\[dailymotion\]http://www.dailymotion.com/swf/(.*?)\[/dailymotion\]#s',
                     '#\[mp3\]([^\[]*?)\[/mp3\]#',
                     '#\[url\]([^\[]*?)\[/url\]#e',
                     '#\[url=([^\[]*?)\](.*?)\[/url\]#e',
                     '#\[email\]([^\[]*?)\[/email\]#',
                     '#\[email=([^\[]*?)\](.*?)\[/email\]#',
                     '#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s');

    $replace = array('<strong>$1</strong>',
                     '<em>$1</em>',
                     '<span class="bbu">$1</span>',
                     '<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/$1" width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$1"><param name="WMode" value="Transparent"><param name="autoplay" value="no"><p>Si vous ne voyez pas cette vidéo, téléchargez le plug-in Flash</p></param></object>',                     
                     '<object type="application/x-shockwave-flash" data="http://www.dailymotion.com/swf/$1" width="425" height="350"><param name="movie" value="http://www.dailymotion.com/swf/$1"><param name="WMode" value="Transparent"><param name="autoplay" value="no"><p>Si vous ne voyez pas cette vidéo, téléchargez le plug-in Flash</p></param></object>',                     
                     '<object type="application/x-shockwave-flash" data="dewplayer.swf?mp3=$1" width="200" height="20"><param name="movie" value="dewplayer.swf?mp3=$1"><param name="WMode" value="Transparent"><param name="autoplay" value="no"><p>Si vous ne voyez pas cette vidéo, téléchargez le plug-in Flash</p></param></object>',
                     'handle_url_tag(\'$1\')',
                     'handle_url_tag(\'$1\', \'$2\')',
                     '<a href="mailto:$1">$1</a>',
                     '<a href="mailto:$1">$2</a>',
                     '<span style="color: $1">$2</span>');

The <embed> is deprecated.

This code is valid for html4.01, for xhtml1.0 strict you must delete the end tag </param> and auto close all <param ... />.

I don't know why, but google video doesn't want to work.