Test, validate and match regular expressions
Matches YouTube video URLs across multiple formats including youtu.be short links, youtube.com, and youtube-nocookie.com domains. Extracts the 11-character video ID from various URL patterns (watch, embed, shorts) while avoiding URLs already embedded in HTML anchor tags. Designed specifically for replacing plain text YouTube links with iframe embeds.