Test, validate and match regular expressions
Matches YouTube and Vimeo video URLs and captures the video ID from various URL formats including watch, embed, short links, and API endpoints. Supports both HTTP and HTTPS protocols, optional subdomains (player., www.), and handles multiple YouTube domain variations (youtube.com, youtu.be, youtube.googleapis.com) alongside Vimeo. The global flag allows matching multiple URLs in a single text, making it useful for video embed extraction or URL validation.