Regex filters in Search Console
You want to compare every query that contains a product model, a city, or a handful of similar words. Clicking through them one by one is slow. Exporting everything to a spreadsheet turns a quick question into an afternoon.
A regex filter does it in the Performance report.
Regex describes a pattern instead of one exact phrase. In Search Console, it lets you include or exclude queries and page URLs that match. It works best when the pattern is clear, the data set is manageable, and you remember the report still has Search Console’s data limits.
Begin with a reporting question
Don’t start by learning every symbol. Start with a question: how are brand and non-brand queries performing? Which product URLs contain a particular handle pattern? Are several spellings of a location appearing in search?
Write down the values you want included and excluded. A pattern is easier to test when you know what it should match. If you are unsure, test it with a few real query strings in a regex tester using the same syntax Search Console supports, then confirm the report itself returns the expected group.
Search Console uses RE2 syntax, so some features from other regex engines won’t work. Keep the expression plain, and check Google’s help documentation when a pattern misbehaves. The report’s filter interface offers match and does-not-match choices, so decide whether you are building the group you want or excluding a known subset.
Build patterns in small steps
Say you want queries containing one of several product terms. A vertical bar means “or”. Group the alternatives so the pattern is unambiguous, and if you add anything around them, add only what you understand and test each change.
Search Console’s regex is generally case-insensitive for these filters, but spaces and punctuation still matter. A term with a hyphen may not match the same value written with a space. Search query data can include different spellings and word orders, so look at actual values before making assumptions.
For URLs, remember that the report may show canonicalised pages rather than every URL variant you expected. A pattern that looks correct against a raw URL list may return less data because the report’s page dimension has its own rules. Compare the output with a few known pages.
Use it to compare groups, not to manufacture certainty
Regex organises a report, but it doesn’t give you a census of every search. Search Console leaves out some queries for privacy and limits how much data it shows, and a filter narrows it further. Think of the result as a useful slice, not all demand.
For a brand versus non-brand comparison, write both patterns carefully and compare the same date range, search type, country and device. Otherwise, you may be comparing different populations. If the pattern includes only one spelling of the brand, it can exclude misspellings or variants that should be part of the group.
Be cautious with small numbers. A pattern that returns a few impressions can make a percentage change look dramatic. Look at clicks and impressions in context, and ask whether the group is large enough to support a decision. Search Console’s chart and tables help identify a pattern; they do not explain why it happened.
Keep the pattern readable
A dense expression can work and still be a poor reporting asset if nobody else can maintain it. Add a short note on its purpose and a few values it should match. Use a saved spreadsheet or reporting document if a pattern is part of a recurring analysis.
If an expression needs several layers of exceptions, consider whether a regex is the right tool. You might be better off exporting a subset, using a sheet with clear categories or creating a small query list manually. A little extra work is preferable to a filter that only its author can interpret.
Do not use regex to imply that two groups are equivalent when they answer different intents. A category name and a problem question may share words but represent different needs. Grouping them can hide distinctions that matter to the business.
Troubleshoot a filter that returns nothing
First, remove the regex and inspect the report for a known example value. Then try a simple exact or substring filter. Check whether the pattern includes punctuation, spaces or a path segment that is actually present. If a pattern has alternatives, test each alternative on its own before combining them.
Confirm that the date range includes data and that you have not left another filter active. Search type and country settings can also change what appears. A blank table does not prove that nobody searched; the expression or report settings may simply be too narrow.
If you need help, share the pattern and a few anonymised examples, not private customer information. A colleague should be able to see what you wanted the filter to match and what it returned.
Save a useful report, not a clever expression
Regex is a small feature with a practical payoff when you ask a repeatable question. It can help group similar queries, compare product URL patterns and exclude a known set of terms. It cannot repair tracking, remove Search Console’s reporting limits or replace interpretation.
When I’m looking at a client site, I use the Performance report as a place to start, then check individual pages and the wider context. How to read the Search Console Performance report covers the basic dimensions, and Search Console for Shopify stores: what to check every week shows a recurring review routine.
Related reading
- How to read the Search Console Performance report
- Search Console for Shopify stores: what to check every week
- Measuring content performance without vanity metrics
Pick one query group you already review and write the simplest pattern that catches it. Test it against real rows. Could someone else tell what it includes without asking you?