Regular Expressions 101

Sponsors

Library entries

2
javascript

Simple URL

Validate an URL input.
Submitted by @nuragic - 4 months ago
2
python

Extract parts of a URL on Python

Extract parts of a URL on Python
Submitted by dixanms - 4 months ago
2
python

Lua Enhanced: +=

Adds += to Lua.
Submitted by anonymous - 3 months ago
2
javascript

Error in Refex

no description available
Submitted by anonymous - 9 years ago
2
javascript

sample

no description available
Submitted by anonymous - 8 years ago
2
javascript

US Postal Code

refactor
Submitted by jay johnson - 8 years ago
2
python

Parasite subtitles

no description available
Submitted by Andrey Spiridonov - 8 years 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