# Search Console regex filters: 10 patterns that find real queries

> Use Search Console regex filters to find question, long-tail and non-brand queries. Ten tested RE2 patterns, the exact menu steps and the mistakes to avoid.

Guide by ZemoPro, published 2026-11-25. Web page: https://zemopro.com/blog/search-console-regex-filter-guide

The Search Console Performance report can filter queries and pages with a regular expression, and it is the fastest way to answer questions the normal filters cannot: which searches are questions, which are long-tail, which ones exclude your brand. This guide shows where the regex filter lives, how Google matches it, and ten patterns we tested before publishing, each with examples of what it catches and what it leaves out.

## Quick steps

1. Open Search Console → Performance → Search results.
2. Click + Add filter, then choose Query or Page.
3. Change the filter type to Custom (regex) and keep Matches regex, or pick Doesn’t match regex to exclude.
4. Paste a pattern, such as ^(how|what|why)\b for question searches, and click Apply.
5. Test the pattern first in a regex tester with a few real queries copied from the report.

## Where the regex filter is in Search Console

In the Performance report, click + Add filter at the top and choose Query or Page. In the box that opens, change the drop-down from the plain text option to Custom (regex). You can then choose Matches regex to keep rows that match, or Doesn’t match regex to remove them. Regex filters are available for queries and pages only, not for countries, devices or dates.

You can stack filters. A common combination is a Query filter that removes brand searches plus a Page filter that keeps one folder, which shows how one section of a site is found by people who do not know you yet.

## Three matching rules that change your results

Search Console uses Google’s RE2 syntax, not the JavaScript or PCRE flavor many online testers default to. RE2 has no lookaheads, lookbehinds or backreferences, so patterns such as (?!brand) or \1 fail.

- Case is ignored by default: HOW and how both match. Put (?-i) at the start if you need a case-sensitive match.
- Matching is partial: the pattern can match anywhere in the query or URL. Anchor it with ^ (start) or $ (end) when position matters.
- Report totals can change after filtering because Search Console omits anonymized queries and truncates very long tables. Compare trends rather than exact sums.

## Ten Search Console regex patterns, tested

Swap the example words for your own brand, folders and topics. Each pattern below was run against the examples shown, with case ignored and partial matching, the same way Search Console applies it.

| Goal | Filter | Pattern | Matches | Does not match |
| --- | --- | --- | --- | --- |
| Question searches | Query · Matches regex | ^(who\|what\|when\|where\|why\|how\|which\|can\|does\|do\|is\|are\|should)\b | how to test regex; what is a sitemap; Can I use regex in GSC | regex tester; showhow tips |
| Long-tail searches (5+ words) | Query · Matches regex | ^(\S+\s+){4,}\S+$ | how to remove duplicate lines online | regex tester online; free json formatter tool |
| Hide brand searches | Query · Doesn't match regex | zemo\|zmo\s?pro | zemopro; zemo pro regex; zmo pro tools | regex tester |
| Comparison and “best” searches | Query · Matches regex | \b(vs\|versus\|alternatives?\|compare\|best\|top)\b | regex101 alternative; png vs webp; best json formatter | stopwatch; bestow |
| Tool-intent searches | Query · Matches regex | \b(free\|online\|generator\|checker\|tester\|calculator\|converter\|maker)\b | robots txt generator; online regex tester; age calculator | what is robots.txt |
| Searches that mention a year | Query · Matches regex | \b20[2-3][0-9]\b | core update 2026; best tools 2027 | error 2048; port 20250 |
| Common misspellings of a term | Query · Matches regex | re[gj]e?x\|regx\|regular exp | regx tester; rejex checker; regular expression test | register |
| Only blog posts | Page · Matches regex | /blog/[^/]+$ | https://example.com/blog/regex-guide | https://example.com/blog/; https://example.com/tools/regex |
| URLs with parameters or fragments | Page · Matches regex | [?#] | https://example.com/page?ref=x; https://example.com/faq#q2 | https://example.com/page |
| Several exact pages at once | Page · Matches regex | /tools/(regex-tester\|sitemap-validator\|robots-txt-generator)$ | https://example.com/tools/regex-tester | https://example.com/tools/regex-tester-guide; https://example.com/tools/json-formatter |

## How to turn a filter into an action

A filter is only useful if it changes what you do next. Question queries tell you which answers to add as headings or FAQs on the page that already ranks. Long-tail queries with impressions but no clicks are often a title that does not repeat the searcher’s words. Comparison queries suggest a short comparison section. Brand-excluded queries show whether you are growing beyond people who already know your name.

Sort the filtered table by impressions and look at average position. Queries between positions 4 and 20 are the most realistic to improve, because the page already ranks and only needs to answer the search more completely.

## Common regex mistakes in Search Console

- Adding spaces around | in an alternation: “how | why” looks for “how ” with a trailing space. Write how|why.
- Forgetting to escape a dot in a URL: example.com also matches examplexcom. Use example\.com.
- Using lookarounds such as (?!zemo) to exclude a word. Use the Doesn’t match regex option instead.
- Expecting case-sensitive matches by default. Add (?-i) when case matters, such as for uppercase URL paths.
- Testing in a JavaScript tester only. A pattern that works there can still use syntax RE2 rejects; use a tester with an RE2 check.

## FAQ

### Does Search Console support regex?

Yes. In the Performance report, add a Query or Page filter and choose Custom (regex). You can match or exclude rows with an RE2 regular expression.

### Is the Search Console regex filter case-sensitive?

No. It ignores case by default. Start the pattern with (?-i) to make it case-sensitive.

### How do I exclude brand searches in Search Console?

Add a Query filter, choose Custom (regex), select Doesn’t match regex and enter your brand and its common misspellings separated by |, for example acme|acmi|ac me.

### Why does my regex work in a tester but not in Search Console?

Most testers use JavaScript or PCRE syntax. Search Console uses RE2, which does not support lookaheads, lookbehinds or backreferences. Check the pattern with an RE2-aware tester first.

### How do I find question queries in Search Console?

Use a Query filter with Matches regex and a pattern such as ^(who|what|when|where|why|how|which|can|does|do|is|are|should)\b. It keeps searches that start with a question word.

## Conclusion

Start with two filters: brand excluded, and question queries. Together they show what new visitors are actually asking and which pages already come close to answering it. Test each pattern in the Regex Tester’s Search Console check before you rely on the numbers.

## Tools mentioned

- [Test a pattern with the RE2 check](https://zemopro.com/tools/regex-tester)
- [Preview a new title in search results](https://zemopro.com/tools/serp-preview)
- [Check a page’s title and description](https://zemopro.com/tools/meta-tag-checker)

## Source

- [Google Search Console Help: Advanced filtering and comparison](https://support.google.com/webmasters/answer/17011165)

_Prepared with AI assistance for research and drafting. Menu names and matching rules were checked on November 25, 2026 against Google’s Search Console help article “Advanced filtering and comparison” (answer 17011165), which states that filters use RE2 syntax, match partially and ignore case by default. Every pattern in the table is tested in ZemoPro’s test suite against its listed examples and scanned for syntax RE2 does not support. Your own report rows depend on your site’s data._

---

About ZemoPro: ZemoPro (zemopro.com) is a free collection of 111 online tools for images, PDFs, text, code, SEO, websites and social media, plus practical guides. No account or sign-up is needed. 95 of the 111 tools run entirely in the browser, so files and text stay on the user’s device. Remote tools send the submitted address and, in supported paste modes, the pasted HTML, XML or text to ZemoPro’s server for analysis. Public URL fetches use private-network protections. Check each tool’s processing notice before submitting sensitive information. Each tool page explains its limits honestly; ZemoPro does not promise rankings, traffic or results.
