wowprompt

Search Console regex filters for question and long-tail queries

Writes ready-to-paste regular expressions for the Search Console query and page filters: question searches, branded and non-branded queries, long-tail phrases and topic groups, each tested against your own sample queries. Use it when the plain contains filter is too blunt to answer a reporting question.

A table of regex filters with what each matches, the filter setting to use, and sample queries that match and do not match each pattern
The output this prompt produced, unedited.

The prompt

Fill in these first

  • Brand names and misspellings: [e.g. examplename, example name, exmplename]
  • Topics to group: [e.g. pricing, comparisons, how-to, city names]
  • Sample queries from the report: [paste 30 to 100 queries]
  • Questions to answer: [e.g. how much traffic is non-branded, which question searches show us but get no clicks]
  • Language of the queries: [e.g. English, Hinglish mixed with English]

Task

Write one regular expression per reporting need, using the syntax the Search Console filter accepts, and prove each one against the sample queries.

Output format

  1. | Need | Regex | Filter setting: matches regex or does not match regex | What it catches |
  2. For each regex, three sample queries it matches and two it correctly leaves out, taken from the inputs.
  3. A short note on how to save the view or compare date ranges with the filter.

Patterns to include

  • Questions: queries starting with or containing who, what, when, where, why, how, which, can, does, is, should.
  • Branded: every brand spelling given, with optional spaces.
  • Non-branded: the branded pattern used with "does not match regex".
  • Long-tail: queries of five words or more.
  • One pattern per topic group.

Rules

  • The filter uses RE2 syntax: no lookaheads or lookbehinds. Use the setting "does not match regex" for exclusions instead.
  • Start each pattern with (?i) so it ignores capital letters either way.
  • Keep each pattern under the filter's length limit and readable; split very long ones.
  • Flag any sample query that the patterns sort into the wrong group.

Example

Long-tail: ^(\S+\s+){4,}\S+$

search console regexquery filterbranded vs non brandedlong tail keywordsquestion keywordsseo reporting

How to run this

Copy the prompt and paste it into Gemini, then set the aspect ratio to 3:4. No reference photo is needed for this one.

The prompt is written in Markdown with each part under its own heading, which is what the copy action hands over. Change one section at a time, keeping the rest intact, so you can tell which change did the work.

Related prompts

All productivity