Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^http(?:s?):\/\/regex101\.com\/r\/([a-zA-Z0-9]{1,6})?$
/
gm

Description

grabs the ID for the regex101.com permalink to code

Submitted by anonymous - 8 years ago