Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
PCRE (PHP <7.3)

/
^(ht{2}ps?:\/{2})?(w{3}.)?regex101\.com\/r\/\w+$
/
gm

Description

Grabs the ID for the regex101.com permalink to code.

Submitted by Sasha Garan - 3 years ago (Last modified 3 years ago)