Test, validate and match regular expressions
Matches YouTube video and playlist URLs beginning with https://www.youtube.com/, supporting both watch and playlist pages. It captures three variants: combined video+playlist parameters (v=...&list=...), video-only IDs (v=...), or playlist-only IDs (list=...), where identifiers consist of word characters with optional hyphens. With global and multiline flags, it's useful for extracting or validating multiple YouTube links from text, logs, or user-submitted content.