Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6064985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:20:24+00:00 2026-05-23T09:20:24+00:00

i have this iframe <iframe width=425 height=349 src=http://www.youtube.com/embed/YRUG-Pu7RzE frameborder=0 allowfullscreen></iframe> how to get video

  • 0

i have this iframe

<iframe width="425" height="349" src="http://www.youtube.com/embed/YRUG-Pu7RzE" frameborder="0" allowfullscreen></iframe>

how to get video id from it by regular expression or any…..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:20:25+00:00Added an answer on May 23, 2026 at 9:20 am

    You can use:

    $subject = '<iframe width=\"425\" height=\"349\" src=\"http://www.youtube.com/embed/YRUG-Pu7RzE\" frameborder=\"0\" allowfullscreen></iframe>';
    $pattern = '!http://(?:www.)?youtube.com/embed/([^"']+)!i';
    $result = preg_match($pattern, $subject, $subpattern); 
    

    $subpattern will contain:

    Array ( [0] => http://www.youtube.com/embed/YRUG-Pu7RzE [1] => YRUG-Pu7RzE )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I were to embed a YouTube video for example <iframe width=560 src=http://www.youtube.com/embed/25LBTSUEU0A class=player
I have this table: <table id=social border=5> <tr> <td> <iframe src=//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fyannbane.blogspot.com%2F&amp;send=false&amp;layout=button_count&amp;width=100&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21&amp;appId=177127339057410 scrolling=no frameborder=0 style=border:none;
I have this iFrame in my parent window... <iFrame src=http://theirdomain.com id=Post_iFrame></iFrame> Then I have
So basically I have something like this <div class=iframe-holder> <span></span> <iframe src=iframe.html width=200 height=200
So I have this code: <iframe id=theFrame src=http://localhost style=width:100%; frameborder=0> </iframe> and the localhost
I have the following code: $embed_url = str_replace('<iframe width=512 height=288 frameborder=0 scrolling=no src=', '',
I have this code: $text = '[iframe=200x200]http://stackoverflow.com[iframe] '; $text = preg_replace( '/\[iframe=(.*?)x(.*?)\](.*?)\[\/iframe\]/ms', '<iframe style=border:
I have applied this code for iframe id. <iframe id='<?php echo 'fraDisabled'.$i.$post->ID; ?>' src='<?php
I have this tag: <a id=link1 runat=server href=http://www.selab.isti.cnr.it/ws-mate/example.pdf title=PDF>Open iFrame</a> This link opens a
I have: $(.fancybox-href).click(function () { $.fancybox({ 'title': this.href, 'width': 800, 'height': 600, 'href': this.href,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.