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
~
^(?!.*(sub-cat|sub-cat2|\.html$)).*/webshop/category/.+$
~
gm
Input 1
1
New
/webshop/category/foo/bar/file.php /webshop/category/foo/bar/file.html /webshop/category/sub-cat/bar/ /webshop/category/sub-cat2/bar/
Extraction
/webshop/category/foo/bar/file.php /webshop/category/foo/bar/file.html /webshop/category/sub-cat/bar/ /webshop/category/sub-cat2/bar/