I'm building a simple function to embed videos in Wordpress. I want to read the post content and replace `[youku: xxAAAJFSK]` with an iframe: `<iframe src="http://player.youku.com/embed/xxAAAJFSK"></iframe>`

I'm guessing I should use a regular expression to do the replacement but can't seem to find the correct one... I tried:

```
$pattern = '/youku\.com\/([^\/]*)/i';
if (preg_match($pattern, $content, $matches)){
  $id_video = $matches[1];
  return "<iframe src='http://player.youku.com/embed/" . $id_video . "></iframe>";
}

```

This just breaks my site though..

Extra points if you manage to let me set the width and height using something like `[youku: xxAAAJFSK width:400 height:400]`