Back to Library
Web

YouTube Video ID

Matches the 11-character YouTube video identifier.

Pattern
^[a-zA-Z0-9_-]{11}$

Test Cases

dQw4w9WgXcQ Match

Try it Live

Test and customize this pattern in our interactive editor

Open in Editor