Skip to content

Instantly share code, notes, and snippets.

Avatar

Khoshbin Ali Ahmed Xoshbin

View GitHub Profile
@vicgonvt
vicgonvt / deployment_guide.md
Last active Jul 21, 2021
Deployment Guide for Ubuntu Server from Scratch with Laravel
View deployment_guide.md
@ghalusa
ghalusa / youtube_id_regex.php
Created Jun 20, 2015
Extract the YouTube Video ID from a URL in PHP
View youtube_id_regex.php
<?php
// Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored)
// http://youtu.be/dQw4w9WgXcQ
// http://www.youtube.com/embed/dQw4w9WgXcQ
// http://www.youtube.com/watch?v=dQw4w9WgXcQ
// http://www.youtube.com/?v=dQw4w9WgXcQ
// http://www.youtube.com/v/dQw4w9WgXcQ
// http://www.youtube.com/e/dQw4w9WgXcQ
// http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ