Skip to content

Cookie settings

Necessary · always on

Sign-in, security and remembering this choice. The site doesn't work without them.

Analytics

Counts visits and how pages are used, so we know what to improve. Google Analytics, Microsoft Clarity.

Marketing

Measures which ads bring visitors and lets us show ads to people who visited. Meta, Google Ads.

Search Console regex cheat sheet: 15 filters

Fifteen tested RE2 patterns for the Query and Page filters, with what each finds and what to watch out for.

Free, no sign-up · works in Excel, Google Sheets, Numbers, Notion or any Markdown editor

At a glance

Sections
4
Type
Cheat sheet · spreadsheet
Formats
xlsx · csv · md
Cost
Free, no sign-up

The whole template, on one page.

The downloads hold exactly this. Jump to a section from the list.

search-console-regex-cheat-sheetSpreadsheet preview

Search Console regex cheat sheet

Performance > Search results > + Add filter > Query or Page > Custom (regex)

0115 regex filters

Replace the example brand (Northwind) and the cities with your own. Test each pattern on real queries before you trust the numbers.

#FilterPatternFindsWatch out for
1Query, matches^(who|what|when|where|why|how|which|can|does|is|are|should)\bQuestionsQuestions phrased later in the query ("tap repair how to") slip through
2Query, matches(\S+ ){5}\S+Long-tail queries of 6+ wordsChange {5} to tune the length; it counts words, not characters
3Query, doesn't matchnorth ?wind|nortwind|northwndEverything except your brand (example brand: Northwind)Add misspellings and product names; check the result for leftovers
4Query, matches\b(vs|versus|alternatives?|compare|comparison)\bComparisons and alternatives"or" comparisons ("notion or obsidian") are too noisy to include
5Query, matches\b(prices?|pricing|costs?|cheap(est)?|how much|fees?)\bPrice and cost searchesWithout \b, "costume" and "priceless" sneak in
6Query, matchesnear me|nearby|open now|\b(in|near) (leeds|york|hull)\bLocal intentReplace the cities with yours; a city alone also catches non-local queries
7Query, matches\b20[0-9]{2}\bQueries with a yearAlso catches model numbers and room numbers like "2050"
8Query, matchesac+om+odationA word and its misspellingsIncludes the correct spelling; pair it with an exact filter to isolate the errors
9Query, matches\b[a-z]{1,3}-?[0-9]{3,}[a-z0-9]*\bProduct codes and model numbersAdjust to your SKU format; generic codes like "mp300" overlap with ordinary words
10Page, matches/(blog|guides)/[^/]+/?$Articles one level deep in two foldersSkips the folder's index page and pagination like /blog/page/2/
11Page, matches[?&](utm_[a-z]+|sort|sessionid|ref)=URLs with tracking or sorting parametersUse \? alone to see every URL with a query string
12Query, matches\b(how to|guide|tutorial|step by step|examples?|templates?)\bHow-to and resource intent"guide" won't match "guidelines" because of \b; add it if you want it
13Query, matches\b(buy|order|for sale|deals?|coupon|discount|promo code)\bBuying intent"order" also appears in informational queries ("order of operations")
14Query, matches\b(not working|error|fix|broken|problems?|won'?t|can'?t)\bProblems and troubleshootingGood for support content; spot-check for product names containing "fix"
15Page, matches(?-i)[A-Z]URLs with capital lettersNeeds (?-i); without it, every URL matches

02Syntax

SyntaxMeaningExampleMatches
a|bEither sidevs|versus"notion vs obsidian"
^ and $Start and end of the text^how"how to…", not "know how"
\bWord boundary\bcost\b"roof cost", not "costume"
?, +, {n}Optional, one or more, exactly nprices?"price" and "prices"
[...] and .One character from a set, any character20[0-9]{2}"2026"

03How the filter behaves

  • The dialect is RE2: no lookahead, lookbehind or back-references. Use "Doesn't match regex" for exclusions.
  • Matching is partial: a pattern matches anywhere in the query or URL. Anchor with ^ and $ when position matters.
  • Matching ignores case by default. Start the pattern with (?-i) to make it case-sensitive.
  • The Page filter sees the full URL, protocol and host included: use /blog/, not ^/blog.
  • RE2's \b is ASCII-only: letters like é or ü count as non-word characters.
  • Query filters drop anonymized queries, so a filter and its "doesn't match" twin won't add up to the unfiltered total.

04Your saved patterns

Search Console has no library of saved filters. Keep one canonical version of each pattern here, especially the brand exclusion.

NameFilterPatternWhat it's for

The .xlsx, .csv and .md downloads contain the same content.

Preview of the Search Console regex cheat sheet; the downloads hold the same content.

How to use it.

4 steps, start to finish.

  1. 01

    Collect real examples

    Five queries the pattern should catch and five it shouldn't, from your own Queries tab.

  2. 02

    Test outside Search Console

    Use an RE2-based tester. A subtly wrong pattern doesn't fail loudly; it just returns the wrong rows.

  3. 03

    Apply it

    Performance > Search results > + Add filter > Query (or Page) > Custom (regex) > Matches regex (or Doesn't match regex), paste, Apply.

  4. 04

    Read the table, then save it

    Scan the top rows for false hits and the "doesn't match" version for misses, tighten the pattern, then add it to the Saved patterns sheet.

With Serplyze

Reuse these patterns in Serplyze

Serplyze reads the same Search Console data and runs regex on RE2, case-insensitive like Search Console. Table filters on screens such as Traffic and Content decay take "matches regex" and "does not match regex", rule-based keyword groups and page groups fill themselves from a pattern, and brand terms accept regexes. Patterns are capped at 200 characters.

Questions.

RE2, Google's regex engine. It runs in linear time and doesn't support lookahead, lookbehind or back-references, so patterns copied from JavaScript or PCRE testers can fail.