Free resource · RE2-verified · No signup

Google Search Console Regex Library& Filter Builder

25 copy-paste RE2 regular expressions we use inside client Search Console properties to isolate AI Overview prompts, non-branded buyer intent, law firm case queries, and crawl-wasting parameter URLs.

How to use this vault.Every pattern below is written in Google's RE2 syntax and tells you whether to apply it to the Query or Page dimension in Search Console. Running a full audit? Pair these filters with our Technical SEO Audit Checklist, Law Firm SEO Checklist or WooCommerce SEO Checklist.

Instant Custom Builder

Build Your Brand or URL Folder Regex

Type your brand variations or URL folders separated by commas to generate a valid RE2 expression for Search Console.

In GSC: Query → Custom (regex). Choose Doesn't match regex to see pure Non-Branded SEO traffic, or Matches regex for Branded demand.

Generated RE2 ExpressionGSC Filter: Query
(?i)\b(searchprex|search prex|nicheseopro)\b
GSC Dimension:
GSC QueryMatches regex

8+ Word Conversational / AI-Prompt Queries

^([^" "]+\s){7,}[^" "]+$

What it finds: Long-tail, conversational searches (8 or more words) where Google almost always triggers an AI Overview or where users paste full prompts into Search.

SEO action: Sort by Impressions descending. Add a 40–60 word direct answer paragraph immediately under an H2 matching the top query to win the AI Overview citation.

Example: what is the statute of limitations for car accidents in texas
GSC QueryMatches regex

10+ Word Ultra-Specific Prompt Queries (Zero-Click Diagnostic)

^([^" "]+\s){9,}[^" "]+$

What it finds: Ultra-long queries (10+ words) often generated by AI search grounding (ChatGPT/Perplexity fan-out queries) or voice search.

SEO action: High impressions + 0 clicks here means Google is using your page as a grounding source in AI Overviews. Turn these into explicit FAQ sections on the ranking URL.

Example: can i sue a trucking company if the driver was an independent contractor
GSC QueryMatches regex

Comparison & 'Vs / Alternative' Evaluation Queries

\b(vs|versus|compared to|alternative|alternatives|difference between|better than|or)\b

What it finds: Queries where searchers and LLMs compare two options, products, legal remedies, or service providers.

SEO action: Add a clean HTML <table> comparing the two entities side-by-side — Google AI Overviews and Perplexity extract comparison tables verbatim.

Example: chapter 7 vs chapter 13 bankruptcy eligibility
GSC QueryMatches regex

Process, Checklist & Step-by-Step Queries

\b(how to|steps to|checklist|process|guide to|what happens when|what to do after)\b

What it finds: Procedural queries where AI Overviews synthesize numbered lists.

SEO action: Structure the answer using an ordered list (<ol><li>) with bolded lead-in steps so Google extracts your list as the featured snippet / AI citation.

Example: what to do after a hit and run accident in wichita
GSC QueryMatches regex

Cost, Pricing, Fee & ROI Justification Queries

\b(cost|price|pricing|fees|how much|worth it|average settlement|hourly rate|retainer)\b

What it finds: Bottom-of-funnel pricing and settlement queries that drive the highest conversion rates.

SEO action: State real numbers, ranges, or fee structures in the first two sentences of the section rather than hiding behind 'it depends'.

Example: how much does a personal injury lawyer take in california
GSC QueryMatches regex

Direct Attorney Hire Intent (Lawyer / Law Firm / Attorney)

\b(lawyer|lawyers|attorney|attorneys|law firm|law office|legal help|counsel)\b

What it finds: Every query with explicit legal representation intent, separating real case prospects from student/informational legal lookups.

SEO action: Filter pages by Pos 4–15 on these queries. Improving internal links, attorney bio E-E-A-T, and local title tags here directly produces signed cases.

Example: truck accident lawyer houston tx
GSC QueryMatches regex

Personal Injury High-Value Case Modifiers

\b(car accident|truck accident|18 wheeler|motorcycle accident|wrongful death|slip and fall|brain injury|dog bite|uber accident|lyft accident)\b

What it finds: Core personal injury tort queries across all practice-area and blog pages.

SEO action: Check if blog posts are cannibalizing your main practice area page for any of these terms (click the Query -> Pages tab).

Example: 18 wheeler accident attorney near me
GSC QueryMatches regex

Settlement Value, Payout & Compensation Queries

\b(settlement|payout|compensation|verdict|worth|average payout|calculator|damages|pain and suffering)\b

What it finds: Injured claimants researching what their case is worth before calling a firm.

SEO action: Embed an interactive calculator or settlement breakdown table and a 24/7 intake CTA above the fold.

Example: average settlement for rear end collision with herniated disc
GSC QueryMatches regex

Family Law & Criminal Defense Urgent Modifiers

\b(divorce|child custody|alimony|prenup|dui|dwi|criminal defense|felony|misdemeanor|expungement|bail|domestic violence)\b

What it finds: High-urgency family and criminal defense queries.

SEO action: Ensure the ranking pages display click-to-call buttons, county court specifics, and immediate response guarantees.

Example: emergency child custody lawyer sedgwick county
GSC QueryDoesn't match regex

Exclude Informational / Law-School Noise (Negative Filter)

\b(salary|jobs|internship|law school|bar exam|definition|meaning|pdf|template|reddit|quora)\b

What it finds: Strips out job seekers, law students, and template hunters so you see true client search demand.

SEO action: Combine with the Query filter when reporting monthly organic growth to partners.

Example: (Excludes: 'paralegal salary texas', 'bar exam dates')
GSC QueryMatches regex

Transactional Buy / Shop / Order Queries

\b(buy|order|shop|for sale|online|in stock|discount|coupon|promo|deal|cheap|free shipping|bulk|wholesale)\b

What it finds: High-intent commercial queries from shoppers ready to check out.

SEO action: Verify that product or category pages (not blog posts) rank for these queries and that Merchant Listing schema (price, availability) is valid.

Example: buy benchmade bugout knife online in stock
GSC QueryMatches regex

SKU, Model Number & Alphanumeric Product Searches

\b[a-zA-Z]{1,5}[- ]?[0-9]{2,6}[a-zA-Z0-9]*\b

What it finds: Shoppers searching exact manufacturer part numbers, SKUs, or model codes — the highest-converting traffic in ecommerce.

SEO action: Include exact manufacturer model numbers in H1s, title tags, and Product schema `mpn` / `sku` fields.

Example: bm-535bk-2 in stock
GSC QueryMatches regex

Commercial Investigation ('Best / Top / Review') Queries

\b(best|top|review|reviews|rated|recommended|authentic|genuine|legit)\b

What it finds: Mid-to-bottom funnel shoppers comparing brands or verifying store legitimacy.

SEO action: Build buyer-guide blocks at the bottom of collection pages and display verified customer review counts.

Example: best american made pocket knives for edc
GSC PageMatches regex

Isolate Product & Collection Pages Only

/(product|products|shop|collections|category|product-category|brand|brands)/

What it finds: Filters GSC performance down to revenue-generating catalogue URLs on WooCommerce and Shopify.

SEO action: Compare 90-day clicks before and after catalogue indexing fixes to measure pure store revenue lift.

Example: https://store.com/product-category/hunting-knives/
GSC PageMatches regex

URLs With Query Parameters (Crawl Waste & Duplicate Check)

\?.*=

What it finds: Parameterized URLs (?orderby=, ?filter_, ?page=, ?s=, ?utm_, ?srsltid=) leaking into Google's index and wasting crawl budget.

SEO action: Consolidate with canonical tags and block non-essential sort/filter parameters in robots.txt.

Example: https://store.com/shop/?orderby=price&add-to-cart=412
GSC PageMatches regex

Paginated Archive & Category URLs (/page/2/, ?page=)

(/page/[0-9]+/?|[?&]page=[0-9]+)

What it finds: Paginated category or blog pages receiving impressions instead of the primary root category page.

SEO action: Ensure page 1 links directly to top priority products/subcategories so deep pagination isn't the only crawl path.

Example: https://store.com/product-category/outdoor/page/14/
GSC PageMatches regex

Deep Architecture URLs (4+ Folder Levels Deep)

^https?://[^/]+/[^/]+/[^/]+/[^/]+/[^/]+/

What it finds: Pages buried 4 or more directory levels deep, which often suffer from weak internal PageRank and 'Crawled – currently not indexed'.

SEO action: Flatten URL structure or add direct hub/footer links to high-value deep pages.

Example: https://site.com/services/legal/texas/houston/truck-accidents/
GSC PageMatches regex

Protocol or Subdomain Split (http:// or non-canonical host)

^http://

What it finds: Any insecure HTTP URLs still earning impressions in a Domain Property due to missing 301 redirects.

SEO action: Enforce a single hop 301 redirect from HTTP and non-canonical hostnames to your canonical HTTPS URL.

Example: http://www.example.com/about
GSC PageMatches regex

Staging, Demo, Tag, Author or Feed Bloat URLs

/(tag|tags|author|feed|wp-content|wp-json|cart|checkout|my-account|sample-page|test|demo)/

What it finds: Thin taxonomy archives, WordPress system endpoints, or utility pages accidentally indexed by Google.

SEO action: Set noindex on thin tag/author archives and remove them from your XML sitemaps.

Example: https://site.com/tag/uncategorized/feed/
GSC QueryMatches regex

'Near Me' & Local Proximity Queries

\b(near me|nearby|close to me|in my area|around me|local|closest)\b

What it finds: High-intent local searches where Google shows the 3-Pack Map results above organic links.

SEO action: Align your landing page H1, GBP primary category, and LocalBusiness schema `areaServed` with these exact services.

Example: ac installation near me
GSC QueryMatches regex

Urgent / Same-Day / 24-Hour Local Service Queries

\b(emergency|24/7|24 hour|same day|urgent|open now|weekend|tonight|after hours)\b

What it finds: Immediate-need callers (HVAC breakdown, emergency roofing, bail/DUI defense, injury intake).

SEO action: Create dedicated emergency service sections and ensure Google Business Profile hours reflect 24/7 availability where applicable.

Example: 24 hour emergency ac repair california
GSC PageMatches regex

Filter All City & State Location Pages

/(locations|location|areas-we-serve|service-areas|cities)/

What it finds: Isolates all geographic landing pages so you can audit which cities are ranking and which have zero impressions.

SEO action: For cities with 0 impressions, verify they are in your XML sitemap, linked from a crawlable HTML footer/hub, and contain local proof.

Example: https://www.searchprex.com/locations/kansas/wichita
GSC QueryMatches regex

All Question Queries (Who, What, Where, When, Why, How)

^(who|what|where|when|why|how|can|does|is|should|will|do)\b

What it finds: Every question-phrased query your site already earns impressions for.

SEO action: Pick questions with high impressions and low CTR -> add them as exact H2/H3 subheadings on the ranking page.

Example: how long does google take to index a new page
GSC QueryMatches regex

Problem-Solving & Troubleshooting Queries (Fix / Error / Not Working)

\b(fix|error|issue|problem|not working|not indexing|dropped|lost|penalized|suspended|recover|recovery)\b

What it finds: Pain-driven searches from users actively trying to solve a broken system or ranking drop.

SEO action: High-converting lead magnet placement: offer a diagnostic checklist or free audit right after the troubleshooting steps.

Example: discovered currently not indexed fix woocommerce
GSC QueryMatches regex

Link-Magnet Queries (Checklist, Template, Calculator, Tool)

\b(checklist|template|calculator|generator|tool|audit|scorecard|examples|playbook|cheat sheet)\b

What it finds: Searches for interactive utilities and downloadable frameworks — the #1 natural backlink earners in SEO.

SEO action: Turn high-impression static blog posts matching these terms into interactive web tools or checklists.

Example: technical seo audit checklist
RE2 Syntax Cheat Sheet

5 RE2 tokens that do 90% of the work in Search Console

(?i)

Case-insensitive flag

Place at the very start of your pattern so uppercase and lowercase URLs or queries both match.

\b(word1|word2)\b

Whole-word alternation

Matches any word in the group without accidentally matching substrings (so 'car' does not match 'scar').

^ and $

Start and end anchors

Use ^http:// to match only URLs starting with HTTP, or ^([^" "]+\s){7,} to count words from the start of a query.

\?.*=

Escaped query string check

Because ? is a quantifier in regex, escape it as \? when hunting parameterized URLs in the Page filter.

FAQ

Google Search Console Regex Questions, Answered

Where do I paste a regex filter in Google Search Console?

Open Google Search Console, go to Performance > Search results, click '+ New' in the filter bar at the top, choose either 'Query...' or 'Page...', select 'Custom (regex)' from the dropdown, and paste the expression.

What regex syntax does Google Search Console use?

Google Search Console uses Google's RE2 regular expression syntax. RE2 supports standard character classes, word boundaries (\b), alternation (|), quantifiers ({n,m}) and case-insensitive flags ((?i)), but does not support lookaheads or lookbehinds. Every pattern on this page is strictly valid RE2.

How can I use regex in Search Console to spot AI Overview queries?

Google does not provide a separate 'AI Overviews' filter in Search Console, and clicks/impressions inside AI Overviews are folded into standard Web search totals. However, filtering Query by 8+ or 10+ words (`^([^" "]+\s){7,}[^" "]+$`) surfaces the conversational, prompt-style searches where AI Overviews appear most often. High impressions paired with a sudden CTR drop on those queries usually means an AI Overview is answering the query above organic links.

How do I filter out branded queries in Google Search Console?

Use the Custom Brand Regex Builder at the top of this page: enter your brand name, common misspellings, and founder/attorney names separated by commas. Then in Search Console choose Query > Custom (regex) > Doesn't match regex and paste the generated `(?i)\b(...)\b` pattern.

What is the character limit for a Search Console regex filter?

Search Console allows up to 4,096 characters in a single custom regex filter. Keep alternation lists concise using word boundaries (`\b(term1|term2|term3)\b`) rather than repeating full phrases.

Found a leak in your Search Console data?

Want a founder-led tear-down of your Search Console property?

We audit your indexing coverage, query cannibalization, and AI Overview visibility directly from real Search Console data — delivered within 24 hours.