Regular Expressions 101

Community Patterns

regex101.com id grabber

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 - 2 years ago (Last modified 2 years ago)