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
/
href="\/
/
gm
Input 1
New
<html> <head> <title>Hello</title> </head> <body> <p>this is a simple text in html file</p> <a href="https://google.com">Google</a> <a href="/frontend/login/">Login</a> <a href="/something/work/">Something</a> </body> </html>
Substitution
href="\/more\/
<html> <head> <title>Hello</title> </head> <body> <p>this is a simple text in html file</p> <a href="https://google.com">Google</a> <a href="/frontend/login/">Login</a> <a href="/something/work/">Something</a> </body> </html>