(.*?)<\/p>/gi,"[code]$1[/code]");
rep(/(.*?)<\/strong>/gi,"[code]$1[/code]");
rep(/(.*?)<\/em>/gi,"[code]$1[/code]");
rep(/(.*?)<\/a>/gi,"[link=$1]$2[/link]");
rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]");
rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]");
rep(/(.*?)<\/a>/gi,"[link=$1]$2[/link]");
rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]");
rep(/ (.*?)<\/p>/gi,"[blockquote]$1[/blockquote]");
rep(/ (.*?)<\/p>/gi,"[hide]$1[/hide]");
rep(/ (.*?)<\/p>/gi,"[quote=$1]$2[/quote]");
rep(/(.*?)<\/span>/gi,"[blockquote]$1[/blockquote]");
rep(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");
rep(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");
rep(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");
rep(/ <\/p>/gi,"\n");
rep(/ <\/p>/gi,"\n");
rep(/ <\/p>/gi,"\n");
rep(/ <\/p>/gi,"\n");
rep(/ (.*?)<\/p>/gi,"[$1]$2[/$1]");
rep(//gi,"[u]");
rep(/ /gi,"");
rep(/ $1 <\/p>");
rep(/\n/g, " $1 $1 $2 $2 $1 $1 $1 $1(.*?)<\/code>/gi,"[code]$1[/code]");
rep(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");
rep(/<\/(strong|b)>/gi,"[/b]");
rep(/<(strong|b)>/gi,"[b]");
rep(/<\/(em|i)>/gi,"[/i]");
rep(/<(em|i)>/gi,"[i]");
rep(/<\/u>/gi,"[/u]");
rep(/
]*>/gi,"[quote]");
rep(/<\/blockquote>/gi,"[/quote]");
//listes
rep(/
]*>(.*?)<\/ul>/gi,"[list]$1[/list]");
rep(/
(.*?)<\/ol>/gi,"[list=lower-alpha]$1[/list]");
rep(/
]*>(.*?)<\/ol>/gi,"[list=decimal]$1[/list]");
rep(/
");
rep(/
/gi,"\n");
rep(/
/gi,"\n");
rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]");
rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]");
rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]");
rep(/
");
rep(/\[b\]/gi,"");
rep(/\[\/b\]/gi,"");
rep(/\[i\]/gi,"");
rep(/\[\/i\]/gi,"");
rep(/\[u\]/gi,"");
rep(/\[\/u\]/gi,"");
rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2");
rep(/\[url\](.*?)\[\/url\]/gi,"$1");
rep(/\[link=([^\]]+)\](.*?)\[\/link\]/gi,"$2");
rep(/\[link\](.*?)\[\/link\]/gi,"$1");
rep(/\[img\](.*?)\[\/img\]/gi,"");
rep(/\[img=miniature\](.*?)\[\/img\]/gi,"");
rep(/\[color=(.*?)\]/gi,"");
rep(/\[\/color\]/gi,"");
rep(/\[hide\](.*?)\[\/hide\]/gi,"
$1<\/div>");
rep(/\[video=dailymotion\](.*?)\[\/video\]/gi,"
$1<\/div>");
rep(/\[video=veoh\](.*?)\[\/video\]/gi,"
$1<\/div>");
rep(/\[video=vimeo\](.*?)\[\/video\]/gi,"
$1<\/div>");
rep(/\[video=jiwa\](.*?)\[\/video\]/gi,"
$1<\/div>");
rep(/\[deezer\](.*?)\[\/deezer\]/gi,"
$1<\/div>");
rep(/\[picasa\](.*?)\[\/picasa\]/gi,"
<\/div>");
//tableaux
rep(/\[\|\]/gi,"");
rep(/\[ligne](.*?)\[\/ligne\]/gi," ");
rep(/\[tableau](.*?)\[\/tableau\]/gi,"$1 $1
");
// lists
rep(/\[list\]\[\*\](.*?)\[\/list\]/gi, "
");
rep(/\[list=decimal\]\[\*\](.*?)\[\/list\]/gi, "
");
rep(/\[list=lower-alpha\]\[\*\](.*?)\[\/list\]/gi, "
");
rep(/\[list\](.*?)\[\/list\]/gi, "
");
rep(/\[list=decimal\](.*?)\[\/list\]/gi, "
");
rep(/\[list=lower-alpha\](.*?)\[\/list\]/gi, "
");
rep(/\[\*\]/gi, "
<\/li>/g, "");
rep(/