Regular Expressions 101

Sponsors

Library entries

1
python

ds100reg2

Data 100 Regular Expressions, adapted from Princeton
Submitted by anonymous - 4 months ago
1
python

Get domain name from URL

Get domain name from URL
Submitted by anonymous - 4 months ago
1
python

Extract time from text

Extract time from text
Submitted by anonymous - 4 months ago
1
python

CRON

Validades cron job time specification
Submitted by anonymous - 3 months ago
1
javascript

HTML注释

HTML注释
Submitted by anonymous - 2 months ago

youtube url match

Vote

4

Regular Expression
javascript

/
(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|playlist\?|watch\?v=|watch\?.+(?:&|&);v=))([a-zA-Z0-9\-_]{11})?(?:(?:\?|&|&)index=((?:\d){1,3}))?(?:(?:\?|&|&)?list=([a-zA-Z\-_0-9]{34}))?(?:\S+)?
/
g

Description

Loading markdown...
Submitted by anonymous - 7 years ago