Test, validate and match regular expressions
Matches YouTube video URLs across multiple domains and formats (youtube.com, m.youtube.com, youtu.be, youtube-nocookie.com), capturing the video ID from paths like /watch?v=, /embed/, /v/, vi=, or short youtu.be links. It handles optional http/https protocols, www prefixes, and URL-encoded variants such as v%3D. Commonly used to extract video IDs from text for embedding, validation, or content processing pipelines. The global and multiline flags allow finding all matches across multi-line input.