Search Console: multilingual URL section filter (RE2-compatible)
- Golang
- Match
Filter multilingual documentation and tools sections in Google Search Console using a RE2-compatible expression. Usage: Replace example.com with your escaped domain, adjust the language alternatives (en|de|sl) and section names (docs|tools), then use Performance → Page → Custom (regex) → Matches regex. Copy the pattern without regex delimiters. The multiline flag is only for the synthetic test list; Search Console evaluates individual URLs. The scheme and host are case-insensitive, but the paths are case-sensitive. Anchoring and exact host/path boundaries reject lookalike domains, credentials in the authority, and similarly named paths. Nested paths, query strings and fragments are accepted. Explicit ports and unrelated subdomains are intentionally excluded. This is a segmentation filter, not general URL validation. Verification: 24 synthetic cases (12 expected matches, 12 expected rejections) passed an independent Go regexp test. The Golang editor returns exactly the 12 expected matches. No private search analytics are included. Further reading: Google Search Console filter documentation. Related engineering context: DigestSEO Web Validator and MCP Suite engineering case study. Original educational example, prepared with AI assistance. Adapt and retest before using it on a real site.
Submitted by Tomi Šeregi