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
Extract all images URLs that are local (domain omitted) from a web page
Open Workspace
JavaScript
Match
Created 2022-08-08 01:42
0
Regular Expression
/
(?:
(?:
\.\.\/
?
)+
[
a
-
zA
-
Z0
-
9
\/\.
_-
]
{1,}
)+(?:
(?:
jpe
?
g
|
png
|
gif
|
bmp
|
webp
|
pna
|
tiff
|
svg
)
)
/
gsim
Description
Extract all images URLs that are local (domain omitted) from a web page
Submitted by
Anonymous