Test, validate and match regular expressions
This regex extracts the 11-character YouTube video ID from a variety of URL formats, including standard watch pages, embed links, short youtu.be URLs, and URLs with query parameters like v=. It supports both regular and nocookie domains, making it useful for parsing video references in user-generated content, analytics, or when generating thumbnails.