Filter Search Console down to exactly the pages you care about
Paste your URLs or keywords. Get one regex that matches that list and nothing else — ready for Search Console, GA4 and Looker Studio.
Alt + R clears · Ctrl + Enter copies the regex
A regex you can actually trust in a filter
Exact by default
Exact mode anchors the pattern with ^ and $, so it matches your list and nothing else — no accidental sub-pages, no trailing-slash surprises.
Four match modes
Exact for a fixed page list. Contains, Starts with and Ends with for the fuzzier jobs — brand vs non-brand queries, a whole folder, or every URL ending in a slug.
Search Console, GA4 & Looker
All three read RE2 regex, but they don't store URLs the same way. Switch between full URLs for Search Console and paths for GA4 and Looker Studio.
Shorter, automatically
Shared prefixes are grouped, so 40 service URLs collapse from roughly 1,950 characters to about 135 — comfortably inside what a filter box will take.
Test before you paste
Check any URL or keyword against the pattern right here and see match or no match instantly, rather than discovering the mistake in your report.
Your list stays yours
Everything runs in your browser. No backend, no upload, no analytics — so client URLs and keyword lists never touch a server. It works offline too.
How it works
-
1
Paste your list
One URL or keyword per line. Blank lines and duplicates are dropped, and every line is trimmed for you.
-
2
Pick the mode
Exact for a fixed set of pages. Contains for brand terms. Then choose full URL or path to suit the report you're filtering.
-
3
Copy it into the filter
In Search Console pick the Page or Query filter, choose
Custom (regex), and paste. Your rows are now just those pages.
Tips & detailed help
Checking a set of service pages
This is the job regex is best at. Paste your ten service URLs, leave the mode on Exact, and paste the result into Search Console's Page filter as Custom (regex). The Performance report now covers only those pages — switch to the Queries tab and you're looking at every keyword those ten pages rank for, with clicks and impressions, as one group.
Full URL or path only?
Search Console's Page dimension stores the whole URL, so use Full URL there. GA4's and Looker Studio's landing-page dimensions store just the path — /services/seo-audit — so a full-URL regex silently matches nothing. Switch to Path only and paste the same list; the scheme and domain get stripped for you.
Looker Studio: MATCH vs CONTAINS
Looker Studio has two functions and they behave differently. REGEXP_MATCH requires the whole value to match, which suits an Exact pattern. REGEXP_CONTAINS looks for the pattern anywhere, which is what a Contains pattern expects. Pairing Contains mode with REGEXP_MATCH is the usual reason a filter returns nothing.
Case, and the "seoul" problem
People type your brand every possible way, so for keywords tick Ignore case — it prefixes (?i), which all three platforms understand. And because Contains matches anywhere, seo also matches seoul hotels. Whole words only wraps the pattern in \b boundaries to stop exactly that.
Why the output looks grouped
A plain (a|b|c) list gets long fast, and filter boxes reject long patterns. Grouping shares the common prefix — /services/(seo-audit|link-building) — for the same result in a fraction of the characters. It's verified to match the same set as the plain list before you see it, and you can untick Shorten by grouping if you'd rather read a flat list.
Trailing slashes bite
/services/seo-audit and /services/seo-audit/ are two different strings to a regex, and Search Console reports whichever your site actually serves. If you're not certain which you'll see, tick Match trailing slash too and both forms are covered — without loosening the pattern anywhere else.
Frequently asked questions
What is regex used for in Google Search Console?
Regex lets you filter the Performance report down to an arbitrary set of pages or queries in one go. Search Console's Page and Query filters both offer a "Custom (regex)" option. Instead of checking ten service pages one at a time, you paste one regex that matches exactly those ten URLs and read their clicks, impressions and queries together.
Does this work with GA4 and Looker Studio too?
Yes. All three use RE2 regex syntax, and this tool only emits RE2-safe patterns. Use Full URL form for Search Console's Page filter, and Path only for GA4 and Looker Studio, whose landing-page dimensions store the path rather than the whole URL. One caveat in Looker Studio: REGEXP_MATCH requires the whole value to match, so for Contains mode use REGEXP_CONTAINS instead.
Why is the output grouped instead of a plain list of URLs?
Grouping shares the common prefix, which makes the pattern far shorter — 40 service URLs drop from about 1,950 characters to about 135 — and filter UIs reject very long patterns. The grouped pattern matches exactly the same set as the plain list; the tool verifies that before showing it, and falls back to the plain list if it ever disagreed. You can also switch grouping off.
Is Search Console regex case-sensitive?
Treat it as case-sensitive and be explicit. If you want to ignore case, tick "Ignore case" and the tool prefixes the pattern with (?i), which is the RE2 inline flag for case-insensitive matching. Search Console, GA4 and Looker Studio all understand it. This matters most for keywords, where people type your brand in every possible casing.
Why does "seo" also match "seoul", and how do I stop it?
In Contains mode a keyword matches anywhere inside the query, so "seo" matches "seoul hotels". Tick "Whole words only" and the tool wraps the pattern in \b word boundaries, so it matches the word "seo" but not "seoul". Exact mode never has this problem because it is fully anchored.
Does my list of URLs or keywords get uploaded anywhere?
No. The whole generator runs in your browser in JavaScript. There is no backend, no upload and no analytics, so your list never leaves your machine. You can confirm it by opening the Network tab, or by installing the app and generating a regex with your Wi-Fi switched off.
How many URLs or keywords can I paste in at once?
There is no limit in the tool itself; the practical limit is how long a pattern the filter UI will accept. The character counter next to the output warns you when a pattern gets long enough to risk rejection. Leaving grouping on is the single best way to stay under the limit — it typically shrinks a list of same-folder URLs by an order of magnitude.
Install Regex Generator