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 719595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:39:39+00:00 2026-05-14T05:39:39+00:00

Welcome, I notice that Youtube make some changes into their website code. Anyone have

  • 0

Welcome,

I notice that Youtube make some changes into their website code.

Anyone have idea how make it working today ?

That’s my script (don’t work anymore)

preg_match('/"video_id": "(.*?)"/', $page, $match);
$var_id = $match[1];

preg_match('/"t": "(.*?)"/', $page, $match);
$var_t = $match[1];

Look at source of example Youtube video page:

http://www.youtube.com/watch?v=w_J27GxPNM0 (yes i like that song very much)

Now the t variable can be found under

<script>
  (function() {
   var isIE = /*@cc_on!@*/false;

I dont paste full because it’s very long.

Regards

  • 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-14T05:39:40+00:00Added an answer on May 14, 2026 at 5:39 am

    Just looking at it, it seems that this should work easily enough:

    pregmatch('/&video_id=([a-zA-Z0-9-%_]*)&/', $page, $match);
    $var_id = $match[1];
    
    pregmatch('/&t=([a-zA-Z0-9-%_]*)&/', $page, $match);
    $var_t = $match[1];
    

    By the way, if you want to be able to do this yourself, it’s quite easy. You just need to learn how to use something called a regex. This website is particularly helpful: http://regular-expressions.info/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some string resources, e.g. a user welcome string. By default it should
I have an HTML page (say welcome.html) which contains an iframe to a page
Ok, i have simple scenario: have two pages: login and welcome pages. im using
Welcome! I very enjoyed programming artificial intelligence in my studies - neural networks, expert
My homepage (or welcome page) will consist of data from two models (lets call
in web.xml i set my welcome file to a jsp within web.xml <welcome-file>WEB-INF/index.jsp</welcome-file> inside
XP-specific answers preferred, but others are welcome too.
I need a WiX 3 script to display to display only 2 dialogs: Welcome
How do I avoid read locks in my database? Answers for multiple databases welcome!
We manage a site for a medical charity. They have a number of links

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.