Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
~
(?:src|action|href)=[\'"]\K/(?!/)[^\'"]*
~
g
Input 1
1
New
<img src="/relative/url/img.jpg" /> <form action="/"> <form action="/contact-us/"> <a href='/relative/url/'>Note the Single Quote</a> <img src="//site.com/protocol-relative-img.jpg" />
Extraction