Regular Expressions 101

Community Patterns

0

Url handling

Python
Simple regex to split url
Submitted by Hangfish - a year ago

youtube video id

1

Regular Expression
ECMAScript (JavaScript)

/
(youtu\.be\/|youtube(-nocookie)?.com\/(v\/|e\/|.*u\/\w+\/|embed\/|.*v=))([\w-]{11})
/
g

Description

Loading markdown...
Submitted by Mantish - 8 years ago