Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
<a[\s\S]*?href="([^"]+)"[\s\S]*?>
/
gm
Input 1
1
New
<html> <head> ... </head> <body> ... <a class="..." href="..." ...>My Text</a> ... <a href="what is this" ></a> <a href="can match across lines" /> </body> </html>