Build, test, and debug regular expressions
Matches YouTube URLs across multiple formats including short links (youtu.be), standard watch URLs, embed links, and playlist URLs, with optional http(s) and www prefixes. Captures three groups: the 11-character video ID, an optional index parameter (1-3 digits), and an optional 34-character playlist ID, handling both raw and HTML-encoded (&) ampersands. Useful for extracting video and playlist identifiers from text, validating user-submitted links, or parsing URLs in JavaScript applications.