我正在尝试使用以下内容从 youtube url 中提取视频 ID:
val YoutubeRegex = """v=([^&]+)""".r
  "v=IQJ13vFYOU8&feature=g-all-lik" match {
    case YoutubeRegex(videoId) => videoId
    case _ => throw new NoSuchFieldError("impossible to find youtube Id")
  }
可悲的是,这不起作用......有什么想法吗?非常感谢