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.

Quick answer: the workflow

  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.

GoalFilterPatternMatchesDoes not match
Question searchesQuery · Matches regex^(who|what|when|where|why|how|which|can|does|do|is|are|should)\bhow to test regex; what is a sitemap; Can I use regex in GSCregex tester; showhow tips
Long-tail searches (5+ words)Query · Matches regex^(\S+\s+){4,}\S+$how to remove duplicate lines onlineregex tester online; free json formatter tool
Hide brand searchesQuery · Doesn't match regexzemo|zmo\s?prozemopro; zemo pro regex; zmo pro toolsregex tester
Comparison and “best” searchesQuery · Matches regex\b(vs|versus|alternatives?|compare|best|top)\bregex101 alternative; png vs webp; best json formatterstopwatch; bestow
Tool-intent searchesQuery · Matches regex\b(free|online|generator|checker|tester|calculator|converter|maker)\brobots txt generator; online regex tester; age calculatorwhat is robots.txt
Searches that mention a yearQuery · Matches regex\b20[2-3][0-9]\bcore update 2026; best tools 2027error 2048; port 20250
Common misspellings of a termQuery · Matches regexre[gj]e?x|regx|regular expregx tester; rejex checker; regular expression testregister
Only blog postsPage · Matches regex/blog/[^/]+$https://example.com/blog/regex-guidehttps://example.com/blog/; https://example.com/tools/regex
URLs with parameters or fragmentsPage · Matches regex[?#]https://example.com/page?ref=x; https://example.com/faq#q2https://example.com/page
Several exact pages at oncePage · Matches regex/tools/(regex-tester|sitemap-validator|robots-txt-generator)$https://example.com/tools/regex-testerhttps://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.

Frequently asked questions

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.

Your next step

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.

Further reading: Google Search Console Help: Advanced filtering and comparison.

FROM READING TO DOING

Put it into practice.

Try Regex Tester and put this article’s next step to work.

Open Regex Tester
← Back to all articles