What if you could ask every conceivable question of your data? That’s where your new best friend comes in: RegEx.
RegEx, short for “Regular Expression” (Regular expression), is essentially “search and replace for pros.” This guide isn’t theory—it’s your everyday playbook to grab the right copy‑paste snippet for your current SEO challenge and act immediately. Yep, you read that right!
- Why you must master the RegEx filter as an SEO
- GSC Setup: How to apply RegEx
- Your cheat sheet: Core RegEx commands
- 24+ Use Cases for SEO insights (copy‑paste)
- Pro tip: Combine filters for maximum precision
- Advanced applications: RegEx beyond the Performance report
- RegEx library (Copy & Paste)
- Industry playbooks (E‑commerce, SaaS, Local)
- From insight to action: Your workflow
- Measurement & monitoring
- Troubleshooting & best practices
- Checklist: Your 5‑point check
- Conclusion: Your path to becoming a GSC analysis pro
- Frequently asked questions (FAQ)
Why you must master the RegEx filter as an SEO
- Save time: Complex analyses that once took hours in spreadsheets can now be done with a single filter.
- Gain deeper insights: Discover keyword clusters, content gaps, and user intents you would otherwise miss.
- Cluster smarter: Separate brand vs non‑brand traffic, compare directories, or analyze the performance of entire keyword groups effortlessly.
- Make confident decisions: Your SEO strategy stops relying on guesswork and starts relying on precisely filtered data.
GSC Setup: How to apply RegEx
Step-by-step: The RegEx filter in the Performance report
- In your Google Search Console, open Performance → Search results.
- Click + New → Query or Page.
- In the dropdown, select “Custom (regex)”.
- Paste your RegEx pattern into the field and click “Apply”.

“Matches RegEx” vs “Does not match RegEx”: The small but crucial difference
You have two options in the dropdown:
- Matches RegEx: Shows everything that matches your pattern (e.g., all question keywords).
- Does not match RegEx: Excludes everything that matches your pattern (e.g., all keywords that include your brand name).
Combining both options lets you build extremely precise filters.

Your cheat sheet: Core RegEx commands
| Symbol | Name | Explanation | Example |
|---|---|---|---|
| | Pipe (OR) | Matches either the left OR the right expression. | seo|sea finds “seo” or “sea”. |
. | Dot | Wildcard for any single character. | hous. matches “house”, “housx”. |
* | Asterisk | Previous token occurs zero or more times. | seo* matches “se”, “seo”, “seoo”. |
+ | Plus | Previous token occurs one or more times. | seo+ matches “seo”, “seoo” but not “se”. |
? | Question mark | Previous token is optional (zero or one). | colou?r matches “color” and “colour”. |
^ | Caret | Expression must be at the START of the string. | ^what matches “what is seo”, not “seo what is”. |
$ | Dollar | Expression must be at the END of the string. | buy$ matches “shoes buy”, not “buy shoes”. |
() | Grouping | Groups multiple tokens into one expression. | (seo|sea) agency matches both variants. |
[] | Character class | Matches any single char inside the brackets. | gr[ae]y matches “gray” and “grey”. |
\ | Backslash | Escapes the special meaning of the next char. | price\.com matches “price.com”, not “pricexcom”. |
Interactive Tool: Your RegEx Finder
Don’t feel like searching? Pick your SEO goal and instantly get the right RegEx code for Google Search Console.
Your RegEx pattern for ““
24+ Use Cases for SEO Insights (Copy-Paste)
1. Brand vs. Non-Brand
Pattern (include brand): (^|\s)(yourbrand|productname|misspelling)(\s|$)
Use: KPI separation for clean success measurement; prioritize non‑brand hubs & guides.
2. Long-Tail by word count
Pattern (min. 5 words): ^\S+\s+\S+\s+\S+\s+\S+.*$
Use: Perfect for FAQ sections, deep-dive guides, and featured snippet optimization.
3. Segment queries by character length
Pattern (10–30 chars): ^.{10,30}$
Use: Alternative to long-tails. Check if medium-length queries (often precise problems) differ in intent from very short/long ones.
4. Comparisons & alternatives
Pattern: (^|\s)(vs|vs\.|against|compare|comparison|alternative(s)?|instead|or)(\s|$)
Use: Identifies demand for comparison tables and clear verdicts (“Who is it for?”).
5. Purchase intent / Bottom-of-Funnel (BoFu)
Pattern: (^|\s)(buy|price|cost|offer|discount|coupon|deal|review(s)?|experience(s)?|rating(s)?|best|top|recommendation)(\s|$)
Use: Surfaces “money keywords.” Optimize landing pages, sharpen CTAs, add trust signals.
6. Pain points & problems
Pattern: (^|\s)(problem(s)?|error|not\s*working|broken|too\s*slow|too\s*expensive|complaint|bug|issue)(\s|$)
Use: Create troubleshooting guides and proactively address objections.
7. After‑purchase / post‑intent
Pattern: (^|\s)(guide|manual|user\s*guide|operation|setup|set\s*up|update|upgrade|compatibility|warranty)(\s|$)
Use: Reveals need for a docs hub/support area and reduces support workload.
8. Question & W‑keywords (for AI Overviews)
Pattern: ^(how|what|why|when|where|which|who|how\s+many|how\s+much)\b.*$
Use: Direct source for content that ranks in “People Also Ask” and AI Overviews.
Deep dive: See my AIO question RegEx guide.
9. Seasonality & freshness
Pattern: (^|\s)(20(2[4-9]|3[0-9]))(\s|$)|(^|\s)(jan(uary)?|feb(ruary)?|mar(ch)?|apr(il)?|may|jun(e)?|jul(y)?|aug(ust)?|sep(t)?|oct(ober)?|nov(ember)?|dec(ember)?)(\s|$)
Use: Basis for your content refresh plan and date snippet optimization.
10. Numbers, sizes, versions
Pattern: (^|\s)(\d{2,}|v?\d+(\.\d+){1,2})(\s|$)
Use: Helps optimize listicles, changelogs, and specs pages.
11. Synonyms & language mix
Pattern: (^|\s)(guide|how\s*to|tutorial|handbook|playbook)(\s|$)
Use: Surfaces opportunities for i18n or glossary build‑outs.
12. Definition intents (“what is”, “definition”)
Pattern: (^|\s)(what\s*is|definition|meaning|explanation)(\s|$)
Use: Foundation for lexicon pages and glossary hubs to build authority.
13. Navigational (brand + “login”, “portal” …)
Pattern: (^|\s)(login|portal|account|dashboard|app|download)(\s|$)
Use: Spots misrouted navigational queries landing on SEO pages; improve UX.
14. Location & proximity (Local SEO)
Pattern: (^|\s)(in\s+berlin|munich|hamburg|cologne|frankfurt|near\s*me|nearby|closest)(\s|$)
Use: Essential for optimizing city landing pages and local hubs.
15. Compliance & standards (B2B)
Pattern: (^|\s)(iso\s*27001|gdpr|sox|hipaa|tisax|en\s*5012)(\s|$)
Use: Important for B2B to build compliance content and trust.
16. Templates & downloads
Pattern: (^|\s)(template(s)?|sample|checklist|pdf|excel|word)(\s|$)
Use: Identifies demand for lead magnets and download hubs.
17. Speed & performance (Tech/Hosting)
Pattern: (^|\s)(load\s*time|page\s*speed|core\s*web\s*vitals|lcp|cls|fid|ttfb)(\s|$)
Use: Surfaces demand for technical guides and fixes.
18. Integrations & compatibility (SaaS)
Pattern: (^|\s)(integration|plugin|api|webhook|compatible|works\s*with)(\s|$)
Use: Shows need for dedicated integration pages and partner SEO.
19. Pricing & plans (SaaS/E‑com)
Pattern: (^|\s)(price(s)?|cost|plan(s)?|package(s)?|license|subscription|free|trial)(\s|$)
Use: Basis for optimizing pricing pages, plan comparisons, and cost FAQs.
20. Reviews & tests
Pattern: (^|\s)(review(s)?|rating(s)?|experience(s)?|test)(\s|$)
Use: Helps build review clusters and strengthen social proof.
21. Problem framing with “without” / “instead”
Pattern: (^|\s)(without|instead|avoid|better\s*than)(\s|$)
Use: Great for objection‑handling content and alternatives.
22. Educational intents (step‑by‑step)
Pattern: (^|\s)(step\s*by\s*step|quick\s*start|getting\s*started|short\s*guide)(\s|$)
Use: Signals need for clear how‑to structures and process pages.
23. Industry signals (customizable)
Pattern: (^|\s)(recipe|ingredient(s)?|cook\s*time|dosage|side\s*effect(s)?|input\s*tax|vat|balance\s*sheet|crm|erp)(\s|$)
Use: Customizable to surface industry‑specific keyword clusters.
24. Technical URL patterns (for Page filters)
Pattern (year/month archive): /archive/\d{4}/\d{2}
Use: Analyze performance of time‑based archive pages to see if older content still drives traffic.
Pro tip: Combine filters for maximum precision
Example: Find “low‑hanging fruit” for your blog
You want all question keywords that rank to your blog pages but are stuck on page 2.
- Filter 1 (Standard): Choose
Position>Greater than>10.9. - Filter 2 (RegEx): Choose
Query>Custom (regex)>Matches regex>^(what|how|why|which|when|who) - Filter 3 (Standard): Choose
Page>URLs containing>/blog/
The result: a highly precise list of blog articles and keywords with huge potential that only need a nudge to reach page 1.
Advanced applications: RegEx beyond the Performance report
- URL Inspection tool: If you have many URLs with similar patterns (e.g., parameters), use regex logic in your workflow to diagnose duplicate content or crawl issues quickly.
- Index Coverage report: Filter indexed or excluded pages by URL patterns. This lets you systematically find if a whole directory type (like
/archive/) is affected by indexing issues.
RegEx library (Copy & Paste)
|.- Informational (EN):
^(how|what|why|when|where|which|who|how\s+many|how\s+much)\b.*$ - Transactional:
(^|\s)(buy|price|cost|discount|offer|best|top|recommendation|coupon|deal)(\s|$) - Comparative:
(^|\s)(vs|compare|comparison|alternative(s)?|instead|or)(\s|$) - URL Filter (Pages tab):
(^|/)blog/.*|(^|/)guide(s)?/.*|(^|/)shop/.*
Industry playbooks (simple & concrete)
E‑commerce Playbook: From clicks to purchases
In E‑commerce, the details matter. Users often search for very specific product attributes.
Scenario 1: Category page CTR is weak
- The question: Why don’t users click my category pages even though they rank for the head term?
- RegEx segment (hypothesis): Users search for attributes (color, size, material) my snippet doesn’t reflect.
(^|\s)(red|blue|green|black|size\s*m|size\s*42|xl|leather|cotton|organic)(\s|$) - Insight & action: Filter shows high impressions for “red men’s shirt.” Your title is “Premium Shirts for Men.” Action: Optimize meta title to “Men’s Shirts in Linen & Cotton | Red, Blue & More”.
Scenario 2: Keyword cannibalization (blog vs product pages)
- The question: Are my guides stealing revenue‑relevant traffic from product pages?
- RegEx segment (hypothesis): Filter 1 (Page):
/blog/|/guide(s)?/Filter 2 (Query):(^|\s)(buy|price|offer|shop|order)(\s|$) - Insight & action: Blog ranks #4 for “running shoes buy,” shop category at #9. Action: Add prominent CTAs/product boxes in blog; internal link to category with clear anchor.
SaaS Playbook: From problems to demos
In SaaS, users don’t search for your product; they search for solutions to their problems.
Scenario 1: Prospects can’t find your features
- The question: How do users search for solutions my software provides without knowing my feature names?
- RegEx segment (hypothesis):
(^|\s)(problem\s*with|solution\s*for|how\s+can\s+i|template\s*for|automate|simplify)(\s|$) - Insight & action: High impressions for “how can I automate invoices,” but no page. Action: Create a dedicated solution landing page “Automate invoices easily.”
Scenario 2: You’re losing users to competitors
- The question: Are users actively searching for alternatives to my software?
- RegEx segment (hypothesis):
(^|\s)(alternative\s*to|compare|vs\.?|better\s*than)\s+(competitor-a|competitor-b)(\s|$) - Insight & action: Many searches for “alternative to Competitor‑A,” but no visibility. Action: Build a comparison page “Our software vs Competitor‑A.”
Local Services Playbook: From search to call
In local SEO, minutes matter. Users have an acute problem and need a trusted solution now.
Scenario 1: You rank, but the phone doesn’t ring
- The question: Why doesn’t my ranking for “emergency heating repair Berlin” generate calls?
- RegEx segment (hypothesis):
(^|\s)(emergency|24h|urgent|today|weekend)(\s|$) - Insight & action: Clicks come from “urgent/24h,” landing page lists standard hours only. Action: Optimize for emergency intent; big tap‑to‑call; H1 “Your 24/7 Heating Emergency Service …”.
Scenario 2: You’re only compared with bargain providers
- The question: How do I win price‑sensitive searches?
- RegEx segment (hypothesis):
(^|\s)(what\s*costs|price\s*for|cost|fees)\s+(drain\s*cleaning|boiler\s*service)(\s|$) - Insight & action: Ranking exists but high bounce rate. Action: Transparent pricing page/model.
From insight to action: Your workflow
I always start with a question. Example: “Why are users not clicking my comparison snippets?”
1. Preparation (hypothesis & segment)
- Define the hypothesis: e.g., “Comparison intents have potential but aren’t clicked.”
- Choose a segment: Device, country, period (at least 28 days).
- Set the pattern: Pick a fitting RegEx from the library. GSC uses Google’s RE2 syntax.
2. Analysis (KPIs & patterns)
- Pos. ≤ 8 & CTR < 2.5% → snippet potential (title, meta, lists/tables in content).
- Pos. 9–20 & high impressions → expand content depth and internal linking.
3. Action & production
- Implement only one change at a time.
- Example: For a comparison analysis, add an H2 “X vs Y,” a comparison table, and a short verdict.
4. Publish & interlink
- Publish the change and add internal links.
- In GSC, use URL Inspection to request recrawling.
Measurement & monitoring
- Before go‑live: Record segment values (impressions, clicks, CTR, position).
- Annotation: Add an annotation with date and action in your reporting tool (e.g., GA).
- Wait: Let the change run at least 2–4 weeks.
- Compare: Compare identical time windows.
For deeper analyses and long‑term dashboards, export filtered data and process it in Google Sheets or Looker Studio.
Troubleshooting & best practices
I keep patterns intentionally simple. GSC doesn’t support complex constructs like lookaheads. Better to use a robust toolbox of simple patterns.
Checklist: Your 5‑point check
- Clear question? I can state in one sentence what problem the change solves.
- Clean segment? The RegEx segment yields consistent, sensible hits.
- First answer nailed? The first sentence in the relevant section directly answers the user’s question.
- Structure present? Tables/lists where comparisons or steps are expected.
- Measurement set? Baseline recorded and date annotated.
Conclusion: Your path to becoming a GSC analysis pro
Start small. Take one or two patterns from this guide and play with them. You’ll be surprised what hidden gems are sleeping in your GSC data. As you get more confident, you’ll answer increasingly complex and specific questions.
Frequently asked questions (FAQ)
What is RegEx in Google Search Console?
RegEx is a custom filter in the Performance report that lets you filter queries and page URLs by complex patterns instead of just simple words.
How do you use the RegEx filter in GSC?
Create a new filter for queries or pages, choose “Custom (regex)” in the dropdown, and paste your pattern.
Can you filter URLs in GSC with RegEx?
Absolutely! The RegEx filter can be applied to both queries and pages (URLs) to analyze the performance of entire sections.
What are the most important RegEx commands for GSC?
The most important are | (OR), ^ (starts with), $ (ends with), () (grouping), and \ (escape). With these, you can already run most SEO analyses.
Optimize! Use your new knowledge to improve your rankings—and grab the free GSC RegEx cheat sheet.


