Semantic AI-powered SEO Keyword Research
- Organising your database and keyword categorisation
- Practical/Lab – Methods for explicit search intent classification
- Course Takeaways
NEW: AI Search Optimisation and Agentic SEO Course by Beatrice Gamba -> Immediate start, on-demand learning for how to optimise for discovery in agentic search ✨ ✨
Tools & Platforms
In shortA compact pattern language for finding, matching and extracting text, used in Search Console filters, Google Sheets, GA4 and Python.
A regular expression, or regex, is a pattern that describes a set of text strings. Instead of searching for one exact word, you can match “any query that starts with how, what or why”, “any URL in the /blog/ folder” or “any keyword that contains a brand name or a common misspelling of it”. Regex involves no machine learning. It is still one of the most useful tools for preparing data and building rule-based classifiers in SEO.
A pattern combines literal characters with special symbols:
| means “or”: buy|price|cheap matches any of the three.^ and $ anchor the start and end: ^how matches queries that begin with “how”.. matches any character; *, + and ? control repetition; \b marks a word boundary.(?i) makes a pattern case-insensitive in RE2-based tools; brackets group parts of a pattern.Different tools use slightly different regex flavours. Google Search Console, Google Sheets (REGEXMATCH, REGEXEXTRACT, REGEXREPLACE) and Looker Studio use Google’s RE2 syntax, which does not support lookaheads. Python’s re module supports more features.
To find question queries in Search Console, use a custom regex filter on queries such as ^(who|what|why|when|where|how|which|can|does|is)\b. To label branded keywords in Google Sheets, use =REGEXMATCH(A2, "(?i)mlforseo|ml for seo|ml4seo"), adding common misspellings over time. MLforSEO’s lessons also suggest asking an LLM to draft a brand regex from a list of keywords, then checking it by hand.