Regular Expressions 101

Community Patterns

regex101.com id grabber

13

Regular Expression
PCRE (PHP <7.3)

/
^https?:\/\/regex101\.com\/?(?:r\/(?P<link>(?:[a-zA-Z]{2}\d){2})(?:\/(?P<version>\d+)?)?)?$
/
gm

Description

Loading markdown...
Submitted by chris mccoy - 10 years ago