Test, validate and match regular expressions
This regular expression matches complete HTML <iframe> elements that embed YouTube videos. It specifically identifies iframe tags containing URLs from standard YouTube domains (like youtube.com or youtu.be) across various formats, including embed, v, or watch paths. Additionally, it captures the 11-character unique video ID from the URL. It is highly useful for scraping, validating, or extracting embedded YouTube video information from web pages or HTML strings.