Regular Expressions 101

Sponsors

Library entries

3
pcre

JWT Validation

Validate a Json Web Token (JWT).
Submitted by Erik Maas - 7 years ago
3
pcre

TTML time expression offset-time

no description available
Submitted by ovvland - 7 years ago
3
pcre

apache access log

parse the apache access log
Submitted by pagu - 7 years ago
3
pcre

Active Affiliate, Contractor or Employee

no description available
Submitted by MR - 7 years ago
3
pcre

JSON recognition

no description available
Submitted by anonymous - 7 years ago
4
pcre

,(?=([^\"]*\"[^\"]*\")*(?![^\"]*\"))

no description available
Submitted by anonymous - 7 years ago

best youtube id match ( iframe embed replace ready )

Vote

4

Regular Expression
pcre

/
(?:https?:)?(?:\/\/)?(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube(?:-nocookie)?\.com\S*?[^\w\s-])([\w-]{11})(?=[^\w-]|$)(?![?=&+%\w.-]*(?:['"][^<>]*>|<\/a>))[?=&+%\w.-]*
/
gim

Description

Loading markdown...
Submitted by mi-ca.ch - 4 years ago