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
Get a canonical link from html page
Open Workspace
PCRE2 (PHP)
Match
Created 2023-11-23 23:01
1
Regular Expression
/
<link
rel="canonical"
href="
(
.
*?
)
">
/
gm
Description
Gets the canonical link from a html page provided it has one
Submitted by
Anonymous