Regular Expressions 101

Library entries

Youtube Updated 2018 Python

Vote

0

Regular Expression
python

"
^(?:(?:https?:\/\/)?(?:(?:www|s|i2)\.)?(?:youtu\.?be|ytimg)(?:\.com)?\/)(?:watch\?v=|v\/|yt\/favicon|oembed\?|vi\/)?(?:url=http%3A\/\/www\.youtube\.com\/watch\?v%3D)?([a-zA-Z0-9_-]*).*?$
"
gm

Description

Loading markdown...
Submitted by Denis Efremov <efremov.a.denis@gmail.com> - 4 years ago