Test, validate and match regular expressions
Matches YouTube URLs in multiple formats including youtube.com/watch?v=ID, youtu.be/ID, /embed/ID, and /v/ID paths, with optional http(s) protocol and www or m subdomains. The video ID is captured in a dedicated group, making it useful for validating YouTube links, extracting video IDs for embedding or API calls, and parsing YouTube URLs from user input or text content.