Thursday, 27 November 2025

Regex for SEO

 Simple regex cheat sheet

Start inside Google Search Console:

๐Ÿ‘‰ Go to Performance → Queries → Filter → Custom (Regex)

Now use these regex filters to uncover keywords that actually move the needle:

1. Short-Tail Queries (1–2 words)

^[^\s]+(\s[^\s]+)?$ 

2. Medium-tail keywords

^\S+(?:\s+\S+){2,3}$

3. Long-Tail Queries (5+ words)

^\S+(?:\s+\S+){4,}$

4. Question Keywords

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

5. Blog-Style Keywords

^(how to|best|guide|tips|ideas|review|top|learn|examples|benefits)\

6. Buy-Intent / Commercial Queries

^(buy|purchase|price|cost|hire|near me|services?|company)\b