Build, test, and debug regular expressions
Matches YouTube video URLs in multiple formats (youtu.be short links, /v/, /u/X/, /embed/, and watch? pages) and captures the video ID in group 7 via ([^#&?]*). It handles optional v= parameter syntax after the matched path segment, excluding #, &, and ? delimiters from the captured ID. Commonly used for parsing user-submitted links or extracting video IDs from text for embedding or API calls.