Tagged Fiddles
- 1RevisionsForks
YouTube URL Splitter
/(youtube\.com|youtu\.be)\/watch\?v=([_a-zA-Z0-9]+)/#+ YouTube https://www.youtube.com/watch?v=_uwNGESySWy - 1Revisions2Forks
Get YouTube ID
/.*?youtu\.be\/(.*)$1$2.*?youtube.com\/.*?[\?\&]v=([^\&\s]+).*/mgiPull the YouTube ID out of a variety of youtube URLs#Replace with $1$2 to get the ID #Had to remove the 'http:' part to make refiddle happy //youtu.be/5GPM2cYcNWY //www.youtube.com/watch?v=5GPM2cYcNWY&feature=youtu.be //youtube.com/watch?v=5GPM2cYcNWY&feature=youtu.be //www.youtube.com/watch?v=5GPM2cYcNWY //www.youtube.com/watch?feature=youtu.be&v=5GPM2cYcNWY - 2Revisions5Forks
Get YouTube ID
/.*?youtu\.be\/(.*)$|.*?youtube.com\/.*?[\?\&]v=([^\&\s]+).*/mgiPull the YouTube ID out of a variety of youtube URLs#Replace with $1$2 to get the ID #Had to remove the 'http:' part to make refiddle happy //youtu.be/5GPM2cYcNWY //www.youtube.com/watch?v=5GPM2cYcNWY&feature=youtu.be //youtube.com/watch?v=5GPM2cYcNWY&feature=youtu.be //www.youtube.com/watch?v=5GPM2cYcNWY //www.youtube.com/watch?feature=youtu.be&v=5GPM2cYcNWY