Regular expressions

Good morning guys

Im kinda new in this software and im trying to setup my database.

I would like to create an entry on the database that shouldnt popup on chrome/firefox if the url has a specific word.

For example:

http://xxxxx.com/

http:xxxxx.com/test/

Every URL has it owns crendentials.

So if i go to the second URL i dont want to popup the first one credentials, so i would like to create a regular expression to exclude any URL with “test”

I thought this should work but it doesnt.

https://url.com/(?!test).*

Any help would be apprectiated