Regular Expressions 101

Community Patterns

Youtube Channel

0

Regular Expression
PCRE (PHP <7.3)

/
^(?:https?:\/\/)?(?:(?:www|gaming)\.)?youtube\.com\/(?:channel\/|(?:c\/)|(?:user\/)?)([a-z\-_0-9]+)\/?(?:[\?#]?.*)
/
gmi

Description

Extract Youtube Id channel


Extraire l'ID d'une chaine Youtube

Submitted by anonymous - 3 years ago