Test, validate and match regular expressions
Matches YouTube video URLs in multiple formats including youtube.com/watch?v=, youtu.be/, /embed/, and /shorts/ links, with optional http(s):// protocol and www. prefix. The capturing group extracts the video ID from the matched URL. Commonly used to detect and parse YouTube links from text content, comments, or user-submitted input.