Test, validate and match regular expressions
Extracts video duration from YouTube's HTML meta tag by matching duration" content="PT followed by an ISO 8601 time period. Named capture groups 'minutes' and 'seconds' grab the digits before M and S (e.g., PT4M13S yields 4 minutes, 13 seconds). The escaped quotes indicate embedding in a JS string, while global and multiline flags allow scanning full page source. Ideal for scraping video lengths from YouTube HTML.