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

  • Home
  • SEARCH
  • 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 8685477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:34:55+00:00 2026-06-12T22:34:55+00:00

I want to get the Id of a Vimeo video using its Embed Source.

  • 0

I want to get the Id of a Vimeo video using its Embed Source.

I want it in JavaScript OR jQuery.

I am using below code to do the same in PHP.

preg_match('/player\.vimeo\.com\/video\/([0-9]*)/', $embed, $match);

$vid = $match[1];

The above one is working fine. Is It possible to use above regex in javascript?

Here is a sample vimeo embed source –

<iframe src="http://player.vimeo.com/video/51478122?title=0&amp;byline=0&amp;portrait=0&amp;color=fcfcfc" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> <p><a href="http://vimeo.com/51478122">Dum Spiro - HD (ESMA 2012)</a> from <a href="http://vimeo.com/dumspiro">Dum Spiro</a> on <a href="http://vimeo.com">Vimeo</a>.</p>

I want to extract 51478122 from this.

Any Help?

  • 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-06-12T22:34:56+00:00Added an answer on June 12, 2026 at 10:34 pm

    Sure, JavaScript supports regex as well >>

    var match = embed.match(/player\.vimeo\.com\/video\/([0-9]*)/);
    

    jsfiddle.net/XUDBL

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

Sidebar

Related Questions

I want to get the video stream from my webcam using python and OpenCV,
I have a script that gets embed code for me.I am using php simple
I want to get a thumbnail image for videos from Vimeo. When getting images
I have a small video site where I want to get related videos on
What I want: get a xml from the AppData to use What I code
Basically I want get data I already have accessed from javascript and passing it
i want to get the length of a video that the user picks. Im
I am appending code to a div block from a partial using unobtrusive javascript.
all I want to display youtube subscriber using its api. But not able to
I want to do background subtraction in a video file using OpenCV method. Right

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.