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
~
^https?://[^/]+/gummybear(?:/?|/?#.*)$
~
gm
Input 1
1
New
examples it should be true for https://www.example.com:81/gummybear/ http://www.example.com/gummybear#top https://example.com:81/gummybear#/foobar/?search=params http://www.exa.mple.com:81/gummybear https://example.com:81/gummybear/#/exaple/1234/ examples that it should be false for https://www.example.com:81/foo/gummybear/ https://www.example.com:81/guMmybear/ https://www.example.com:81/gummybear.html http://www.example.com/gummybear/apple#top file://example.com:81/gummybear#/foobar/?search=params http://www.exa.mple.com:81/gummybear?search=apple#lol https://example.com:81/#/gummybear/ http://www.test.com:81/dir/dir.2/index.htm?q1=0&&test1&test2=value#top