Test, validate and match regular expressions
Matches HTML iframe elements that embed YouTube videos via youtube.com/embed/ URLs, capturing optional width and height attributes plus the video ID. It's designed to handle iframes where dimension attributes may appear before or after the src attribute. Commonly used to extract video IDs or rewrite iframes, such as stripping fixed dimensions to make YouTube embeds responsive. Runs with case-insensitive, global, multiline flags.