Regular Expressions 101

Community Patterns

106

trim

ECMAScript (JavaScript)
trim string
Submitted by fp - 10 years ago

YouTube link parser

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(https:\/\/youtu\.be\/|http:\/\/www\.youtube\.com\/watch\?v=).*$
/
gm

Description

Loading markdown...
Submitted by anonymous - 9 months ago
(Last modified 9 months ago)