Regular Expressions 101

Sponsors

Library entries

10
javascript

Full url parse, domain, path, params

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

UUID

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

simple email

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

money: either 0 or 2 dp

no description available
Submitted by anonymous - 7 years ago
7
javascript

Match text (not within html tag)

no description available
Submitted by Moistly - 8 years ago
7
javascript

Date and time format - ISO 8601

Matches ISO 8601 date formats
Submitted by Ettienne - 7 years ago
6
javascript

Password

no description available
Submitted by anonymous - 9 years ago

youtube url match

Vote

7

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 - 8 years ago