Regular Expressions 101

Community Patterns

10

UUID

ECMAScript (JavaScript)
no description available
Submitted by anonymous - 9 years ago
10

entity

Python
no description available
Submitted by anonymous - 8 years ago

youtube iframe embed code src video id and params

0

Regular Expression
ECMAScript (JavaScript)

/
<iframe[\s\w="\/]*src="(?<src>(?:https*:\/\/)?www\.youtube(?:-nocookie)?\.com\/embed\/(?<vid>[-a-zA-Z0-9@:;%_+.~#&=]+)\??(?<params>[-a-zA-Z0-9@:;%_+.~#?&\/=]*))"[^>]*>(?:<\/iframe>)?$
/
gm

Description

Loading markdown...
Submitted by Robert Klein Kromhof - 5 years ago