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.
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
- Paste the queries or page URLs you want to include, one per line.
- Choose whether the filter should match or exclude matches, then set case and scope options.
- 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. citeturn112108search0
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. citeturn112108search5