Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
regex101.com id grabber
Open Workspace
PCRE (Legacy)
Match
Created 2014-08-19 16:10
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