Build, test, and debug regular expressions
Matches YouTube video URLs across multiple formats—including youtu.be short links, youtube.com embed/v/e/player paths, and youtube-nocookie.com domains—and captures the 11-character video ID. With the global flag, it can extract all video IDs from text containing multiple links. Ideal for URL parsing, link detection, and building video embeds in JavaScript applications.