Regular Expressions 101

regex101.com id grabber

Open Workspace
  • PCRE (Legacy)
  • Match
13

Regular Expression

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

Description

grabs the ID for the regex101.com permalink to code

Submitted by chris mccoy