
Preload vs Preconnect: Which Resource Hint to Use and When
Preload vs preconnect explained: when to use each resource hint, the crossorigin and as mistakes that waste them, and how many hints…
Read article
This guide is for site owners, SEOs and content teams who use the Performance report in Google Search Console and want to slice queries and pages faster than one phrase at a time. You will learn the rules Search Console regex follows, a set of patterns that work as written, and what to do with the filtered data afterwards.
Search Console regex filters let you filter the Performance report by a pattern instead of one phrase. Add a Query or Page filter, choose Custom (regex) and paste an RE2 pattern. Matching is partial and not case sensitive by default. RE2 has no lookarounds, so exclude terms with the “Doesn’t match regex” option.

Search Console regex follows three rules: RE2 syntax, partial matching and case-insensitive matching by default. Google’s advanced filtering help page says “The RE2 syntax is used”, “Default matching is a “partial match”” and “Default regex matching is not case-sensitive.” Partial matching means the pattern only needs to appear somewhere in the query or URL. To make a pattern case sensitive, start it with (?-i).
RE2 leaves out some features found in JavaScript or PCRE. Google Cloud’s RE2 reference says “RE2 doesn’t support arbitrary lookahead or lookbehind assertions, nor does it support backreferences.” So (?!brand) and \1 will not work. Everything else most SEO patterns need is there: | for alternatives, parentheses, ^ and $, \b, \s, \S and counted repeats such as {4,}.
| Goal | Regex | Filter |
|---|---|---|
| Question queries | ^(who|what|when|where|why|how|which|can|does|is|are|should)\b | Query, Matches regex |
| Questions anywhere in the query | \b(who|what|when|where|why|how)\b | Query, Matches regex |
| Long-tail, 5 or more words | ^\S+(\s+\S+){4,} | Query, Matches regex |
| Short queries, 1 or 2 words | ^\S+(\s+\S+)?$ | Query, Matches regex |
| Brand queries | (acme|akme|acme\.com) | Query, Matches regex |
| Non-brand queries | (acme|akme|acme\.com) | Query, Doesn’t match regex |
| Commercial intent | \b(price|cost|cheap|hire|service|agency)\b | Query, Matches regex |
| Comparisons | \b(vs|versus|alternative|alternatives)\b | Query, Matches regex |
| Local intent | \b(near me|nearby|in london)\b | Query, Matches regex |
| Blog or guides folders | ^https?://[^/]+/(blog|guides)/ | Page, Matches regex |
| URLs with parameters | \? | Page, Matches regex |
| Case sensitive path | (?-i)/Products/ | Page, Matches regex |
Open the Performance report, add a filter, choose Queries or Pages, then choose Custom (regex). Google’s help page lists those steps and explains the two match options: “Matches regex” keeps rows that fit the pattern, and “Doesn’t match regex” shows “everything except the specified values”. Paste the pattern, apply, and the chart, totals and tables update to the filtered rows.
Test the pattern before you trust the numbers. The Search Console regex generator builds patterns from presets and marks each sample line as kept or filtered out, and the general regex tester helps with patterns you write by hand. Both run JavaScript regex, so watch for any warning about features RE2 does not support.
The most useful query patterns find questions, long-tail searches, commercial intent and comparisons, because each group needs a different kind of content. Question queries, such as ^(who|what|when|where|why|how)\b, show what people want explained and make good FAQ and guide topics. A long-tail pattern such as ^\S+(\s+\S+){4,} keeps queries of 5 words or more, which are often specific problems a single section can answer.
Commercial patterns such as \b(price|cost|cheap|hire|service|agency)\b show buyers, and comparison patterns such as \b(vs|versus|alternative|alternatives)\b show people choosing between options. Add \b on both sides of short words, otherwise “cost” also matches “costume”.
Write one pattern containing every brand term, then use “Matches regex” for brand queries and “Doesn’t match regex” for non-brand queries. Include misspellings, the domain without spaces and product names, for example (acme|akme|acmeseo|acme\.com). Escape the dot with a backslash, because an unescaped dot matches any character.
Eligible sites can also use Search Console’s own branded and non-branded queries filter. Google’s dimensions help page says it separates data “based on whether or not the search term included your brand name”, warns that “Some queries might be incorrectly identified as branded or non-branded” and notes it “isn’t available for sites with a low number of impressions”. A regex you control is the fallback for smaller sites and a way to check the automatic split.
Use a Page filter with a pattern anchored after the domain, such as ^https?://[^/]+/(blog|guides)/. Page filters run against the full URL, so a loose pattern like /blog/ also matches /news/blog/ deeper in the site, while /blog without the closing slash matches /blog-news/. Anchoring after the host keeps the filter to the top level folders you named.
Capital letters matter more in URLs than in queries. Search Console ignores case by default, so /Products/ and /products/ are treated as the same unless you start the pattern with (?-i). Use that when your site has separate URLs that differ only by case.
The common causes are an RE2 syntax error, an unescaped special character, a pattern that is too loose, and privacy filtering. Google’s help on dimensions says some rare queries are anonymized, and they count in the totals “unless a query filter is applied”. Google’s filtering page adds that “Filtering your data by query or URL can affect the report totals due to data truncation.” A filtered total that is lower than the unfiltered total minus the excluded rows is therefore expected, not a bug.
Export them and turn them into a page plan. Paste the filtered query list into the keyword clustering tool with impressions or clicks as volume, and it groups queries that share word stems and phrases, names each group after its biggest query and exports a CSV. Each group is a candidate for one page or one section.
Then check the groups against what you already have. If two of your URLs rank for queries in the same group, read the keyword cannibalization guide before creating anything new, and see how keyword clustering works for the limits of grouping by words alone. The same regex habits help elsewhere too: the method in tracking ChatGPT traffic in GA4 uses a referrer pattern built the same way.
Example: a sample of 8 made up queries tested in the Search Console regex generator. The question pattern ^(who|what|when|where|why|how|which|can|does|do|is|are|should|will)\b keeps 3 of them: “how to fix crawled currently not indexed”, “what is a canonical tag” and “why is my page not indexed”. The long-tail pattern ^\S+(\s+\S+){4,} keeps 4, adding “seo audit checklist for small business websites”. For non-brand, the terms acme.com, acme and a+b corp become (?-i)(acme\.com|acme|a\+b corp) with “Doesn’t match regex”; it keeps 7 lines, because “Acme pricing” has a capital A and the pattern is case sensitive. Without (?-i) it would keep 6.
Yes. In the Performance report you choose Queries or Pages, then Custom (regex). Query filters run against the search term and Page filters against the full URL, including the protocol and host, so anchor page patterns accordingly.
No, not by default. Google’s help says default regex matching is not case-sensitive. Add (?-i) at the start of the pattern to make it case sensitive, which mostly matters for URL paths with capital letters.
Because Search Console uses RE2, which does not support lookahead, lookbehind or backreferences. Write a pattern for the terms you want to remove and select the Doesn’t match regex option instead of using (?!…).
Anchor both ends with ^ and $, for example ^seo audit$. Without anchors the pattern matches any query containing those words, because Search Console uses partial matching by default.
Yes. You can add a regex Query filter together with filters for country, device, search type or date, and the report shows rows that meet all of them. Combining a question pattern with a mobile device filter is a common example.
Some rare queries are anonymized for privacy and drop out of totals when a query filter is applied, and Google notes that query or URL filters can affect totals because of data truncation. Compare trends rather than expecting exact sums.
This guide is part of my technical SEO guides.
Checked 23 Oct 2026. Facts checked against these official pages. Read how I check facts in my editorial policy.
Want your Search Console data turned into a clear action list? See my technical SEO service.

Preload vs preconnect explained: when to use each resource hint, the crossorigin and as mistakes that waste them, and how many hints…
Read article
Nginx vs Apache redirects: how 301 and 302 rules differ, why .htaccess rules break on Nginx, how to handle trailing slashes and…
Read article
QAPage vs DiscussionForumPosting schema: Google's rule for choosing, what each type requires, which pages qualify for neither, and how to test the…
Read articleSend your website and I will reply with a free audit.