Home› SEO›Search Console Regex Generator
SEO tool

Search Console Regex Generator

Build RE2-compatible regex filters for Google Search Console queries and page URLs.

Build Google Search Console regex filters

Turn a list of queries or URLs into a cleaner RE2-compatible regex for Custom (regex) filters.

Items0
Regex length0
Syntax targetRE2
GSC behavior: Search Console uses RE2 syntax. Its default regex matching is partial and not case-sensitive; use anchors when you need start/end or full-string behavior. citeturn112108search0turn112108search2

What this generator creates

This tool turns multiple lines into one alternation pattern, escapes regex characters in each entered item, and optionally adds anchors or Search Console's case-sensitive prefix. It is meant for the Custom (regex) filters in the Search results Performance report.

How to use the regex

  1. Paste the queries or page URLs you want to include, one per line.
  2. Choose whether the filter should match or exclude matches, then set case and scope options.
  3. Copy the generated expression into the Search Console filter and review the matching rows before drawing conclusions.

Why RE2 compatibility matters

Google Search Console documents RE2 as the regex syntax for its custom filter. That means many regex features used in other engines should not be assumed to work here. This generator stays intentionally simple: escaped literals, alternation, anchors and the documented (?-i) case-sensitive prefix. citeturn112108search0

Search Console data has limits

Query tables can omit anonymized queries and are subject to data truncation, so a regex filter is a way to filter the data Search Console exposes, not a guarantee that every matching query exists in the visible table. citeturn112108search5

Frequently asked questions

Which regex syntax does Search Console use?
Google documents RE2 syntax for the Custom (regex) filters in Search Console.
Does Search Console regex match partial text by default?
Yes. Google documents partial matching as the default unless you use anchors such as ^ or $.
How do I make a Search Console regex case-sensitive?
Prefix the expression with (?-i), which Google documents for case-sensitive matching.
Can this tool create negative lookaheads or other advanced regex features?
No. It intentionally generates simple RE2-compatible patterns instead of features that may not be supported by Search Console.