Regular Expressions 101

Community Patterns

YouTube referral data

0

Regular Expression
PCRE (PHP <7.3)

/
((https?:\/\/)?www\.youtube\.com\/watch\?v=[-A-z0-9_]{11})(&feature=(youtu\.be|related|plcp|youtube_gdata_player|kp)|&app=desktop|&eurl=https?:\/\/[^ }&?|\]<]*|&frags=[A-z]{2}(,?[A-z]{2})*|&fmt=18|&ab_channel=[^ }&?|\]<]*)*
/
gm

Description

no description available

Submitted by anonymous - 5 years ago