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
r"
^.*/(?!admin/$)[^/]+/$
"
gm
Input 1
1
New
localhost:8000/admin/mymodel/something/ localhost:8000/something localhost:8000/something/ localhost:8000/something/something/something/ localhost:8000 something/ /someting/a/ /someting//a/a/ /someting// /someting//something// /someting/something// /someting//something// something/something/ something/admin/something/ /something/admin/something/ /admin/ /admin/green/yellow/ /admin/hello/ /admin/hello/hello/ /admin/hello/hello/hello/ /admin/hello/hello admin/ admin/green/yellow/ admin/hello/ /notadmin/path/something /something/admin/something/ /what/is/happening/ /no_admin/yellow/ /no_admin/yellow/green/red/
Extraction