<分区>
Possible Duplicates:
How can I alter this regex to get the Youtube video id from a Youtube URL that doesn't specify the v parameter?
What regex can I use to get the domain name from a url in Ruby?
Improving regex for parsing YouTube / Vimeo URLs
验证字符串是 youtube 或 vimeo 视频的 url 的正则表达式是什么?我不太擅长正则表达式。这是用于 Rails 应用程序。