JSFiddle - React, Tailwind, and code Playground

JavaScript

var url = 'http://youtube.com/watch?v=3sZOD3xKL0Y';
alert(url.match(/v\=([a-z0-9]+)/i));