Browsing articles tagged with " regex"

Extract Youtube And Vimeo Video ID From Link


Sometimes we’re having problem to get video id from link to embed video in iframe, but however we find out temporary solutions but after few weeks we forget that function or method. There’re 2 main video sites youtube and vimeo and now we’ve functions for both youtube and vimeo. you just have to pass video link in function and it returns video id. For Youtube :

For Vimeo :