Ordered matching
The first enabled expression that matches a URL decides its identity, so broad fallback rules can sit below specific ones.
Chrome extension
Regex Tab Dedupe watches newly opened tabs, compares their URLs with rules you control, and keeps either the old or new tab according to the matching rule.
How it works
Write a JavaScript regular expression or start with a preset. Capture the stable part of the URL in group 1.
The extension checks new HTTP and HTTPS tabs against your enabled rules. It does not sweep tabs in the background.
If an older tab has the same rule identity, the extension closes the new duplicate by default. A rule can instead close the old tab and keep the newly opened one, either always or only when the new URL matches an extra condition.
Your rules
The first enabled expression that matches a URL decides its identity, so broad fallback rules can sit below specific ones.
Apply common GitHub, YouTube, Google Docs, Jira, or query-free URL patterns in one click, then edit them when needed.
A rule can keep a new tab only when its URL matches a stricter regex, while the main regex continues to identify both tabs.
URL matching happens inside Chrome. The developer has no server, analytics, ads, or access to your browsing activity.
If Chrome cannot verify, focus, or close a tab safely, the new tab stays open.
Privacy
Regex Tab Dedupe reads tab URLs only to provide duplicate detection. It does not send them to the developer or any developer-controlled service.