1. <i id='gHyye'><tr id='gHyye'><dt id='gHyye'><q id='gHyye'><span id='gHyye'><b id='gHyye'><form id='gHyye'><ins id='gHyye'></ins><ul id='gHyye'></ul><sub id='gHyye'></sub></form><legend id='gHyye'></legend><bdo id='gHyye'><pre id='gHyye'><center id='gHyye'></center></pre></bdo></b><th id='gHyye'></th></span></q></dt></tr></i><div id='gHyye'><tfoot id='gHyye'></tfoot><dl id='gHyye'><fieldset id='gHyye'></fieldset></dl></div>

      <legend id='gHyye'><style id='gHyye'><dir id='gHyye'><q id='gHyye'></q></dir></style></legend>

      <small id='gHyye'></small><noframes id='gHyye'>

    2. <tfoot id='gHyye'></tfoot>
      • <bdo id='gHyye'></bdo><ul id='gHyye'></ul>

        从嵌入的 iframe 代码中获取 YouTube 视频 ID

        时间:2023-10-10

        <small id='p9NtK'></small><noframes id='p9NtK'>

      1. <legend id='p9NtK'><style id='p9NtK'><dir id='p9NtK'><q id='p9NtK'></q></dir></style></legend>
        <i id='p9NtK'><tr id='p9NtK'><dt id='p9NtK'><q id='p9NtK'><span id='p9NtK'><b id='p9NtK'><form id='p9NtK'><ins id='p9NtK'></ins><ul id='p9NtK'></ul><sub id='p9NtK'></sub></form><legend id='p9NtK'></legend><bdo id='p9NtK'><pre id='p9NtK'><center id='p9NtK'></center></pre></bdo></b><th id='p9NtK'></th></span></q></dt></tr></i><div id='p9NtK'><tfoot id='p9NtK'></tfoot><dl id='p9NtK'><fieldset id='p9NtK'></fieldset></dl></div>
          <tbody id='p9NtK'></tbody>

            <tfoot id='p9NtK'></tfoot>

              • <bdo id='p9NtK'></bdo><ul id='p9NtK'></ul>
                  本文介绍了从嵌入的 iframe 代码中获取 YouTube 视频 ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想使用 preg_match 或正则表达式从 YouTube 嵌入代码中获取 YouTube 视频 ID.举个例子

                  I want to get the YouTube video ID from YouTube embed code using preg_match or regex. For a example

                  <iframe width="560" height="315" src="//www.youtube.com/embed/0gugBiEkLwU?rel=0" frameborder="0" allowfullscreen></iframe> 
                  

                  我要取ID 0gugBiEkLwU

                  谁能告诉我怎么做.真的很适合你的帮助.

                  Can anyone tell me how to do this. Really appropriate your help.

                  推荐答案

                  将此模式与捕获组一起使用应该会得到您想要的字符串:

                  Using this pattern with a capturing group should give you the string you want:

                  d/(w+)?rel=d+"
                  

                  示例:https://regex101.com/r/kH5kA7/1

                  这篇关于从嵌入的 iframe 代码中获取 YouTube 视频 ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Youtube PHP APi 检查视频是否重复 下一篇:PHP 从视频中提取音频

                  相关文章

                1. <i id='HhiDE'><tr id='HhiDE'><dt id='HhiDE'><q id='HhiDE'><span id='HhiDE'><b id='HhiDE'><form id='HhiDE'><ins id='HhiDE'></ins><ul id='HhiDE'></ul><sub id='HhiDE'></sub></form><legend id='HhiDE'></legend><bdo id='HhiDE'><pre id='HhiDE'><center id='HhiDE'></center></pre></bdo></b><th id='HhiDE'></th></span></q></dt></tr></i><div id='HhiDE'><tfoot id='HhiDE'></tfoot><dl id='HhiDE'><fieldset id='HhiDE'></fieldset></dl></div>

                    <bdo id='HhiDE'></bdo><ul id='HhiDE'></ul>
                2. <legend id='HhiDE'><style id='HhiDE'><dir id='HhiDE'><q id='HhiDE'></q></dir></style></legend>

                      <tfoot id='HhiDE'></tfoot>

                      <small id='HhiDE'></small><noframes id='HhiDE'>