I have replaced the YouTube regular expression on my site with the following code:
Code:
[http://]*[a-z]*?[\.]?youtube\.[a-z]*?/watch\?[&\w;=\+_\-]*\bv=([A-Z0-9._%-]*)[&\w;=\+_\-]*
The reason is that sometimes there are links in the following format:
http://www.youtube.com/watch?feature...ded&v=video_id
And when users enter such a URL with the default embed code, this link doesn't work because of the extra parameter before the "v".
With the above code it works though.