Hi, PROBLEM: I am trying to add youtube embed on my site. The followings string recognizes the syntax: [youtube=height,widht,id_url]url_without_id_url[/youtube] AIM: I would like to change it so that the syntax changes to [youtube]url_with_id_url[/youtube] // [youtube] and [/youtube] $text = preg_replace("#\[youtube=([0-9]+)[,]([0-9]+)[,]([0-9a-z\-_]+):$uid\](.*?)\[/youtube:$uid\]#si", ""."[/youtube:$uid]", $text); $text = str_replace("[/youtube:$uid]", "", $text); // [youtube]url[/youtube] $pattern = "/\[youtube:$uid\](.*?)\[\/youtube:$uid\]/si"; $replacement = ""; $text = preg_replace($pattern, $replacement, $text);;