Static rustube::ID_PATTERNS [−][src]
pub static ID_PATTERNS: [&SyncLazy<Regex>; 4]
This is supported on crate feature
regex
only.A list of possible YouTube video identifier patterns.
Guarantees:
- each pattern contains an
id
group that will always capture when the pattern matches - The captured id will always match following regex (defined in ID_PATTERN):
^[a-zA-Z0-9_-]{11}$