Build a Search Console query filter
Create an RE2-compatible expression for branded, non-branded, product, or topic query groups.
Free, no signup. Catch PCRE syntax GSC cannot run, then test a safe RE2 pattern locally. Put the pattern on line one and one query per line after it.
RE2 rejects lookarounds, backreferences, atomic groups, and possessive quantifiers. Separate data sets with a line containing ---. Files never leave your browser.
Saved targets, named lists, and recent check summaries remain only in this browser.
Runs entirely in your browser — nothing you paste is uploaded or stored. Anonymous run-level outcome counters may be used for aggregate research; URLs, domains, IPs, and identifiers are never included, and no statistic is released below 100 runs.
This static example uses ^(how|what)\b against three illustrative queries. It shows the exact result shape; it is not connected to a Search Console property.
Issues lists every incompatible token the linter recognizes, its character index, why RE2 rejects it, and a safer rewrite direction. An empty array means no known lint issue was found; it is not a guarantee that a complex pattern expresses your intended audience.
Match is the browser test result for that query. When the pattern has any lint or compile issue, all test rows return false rather than pretending the broken pattern ran successfully.
The linter scans for unsupported RE2 constructs including lookarounds, numeric and named backreferences, atomic and conditional groups, possessive quantifiers, and \Z. It also asks the browser regex engine to catch unbalanced brackets and other compile errors. Only a lint-clean pattern is applied to the supplied queries, with case-insensitive matching.
Search ConsoleA free Google service that reports how a site performs in Google Search and surfaces problems with how Google crawls, indexes, and serves it. It's first-party data straight from Google — but you don't need it to appear in results. uses RE2 syntax. It supports common groups, alternation, character classes, anchors, and quantifiers, but not lookarounds, backreferences, atomic groups, conditional groups, or possessive quantifiers.
Many general-purpose testers use PCRE or JavaScript regex. Those engines accept features that RE2 deliberately excludes. This tool flags the known incompatible constructs before testing the pattern.
No. This tester applies the pattern case-insensitively, matching the behavior expected for Search Console query filtering.
No. The pattern and query list are processed in your browser and are not uploaded.
No. RE2 does not support lookahead. Use a Search Console exclude filter separately, or write an inclusive pattern for the terms you want to keep.
Upvote what you want most. New ideas can be submitted from the floating Feedback menu; requests appear here once approved, and the most-wanted rise to the top.
You won't be emailed about that request anymore.
Loading…
New requests are reviewed before they appear here.
Where this tool helps
Create an RE2-compatible expression for branded, non-branded, product, or topic query groups.
Lint patterns for constructs that Search Console's RE2 engine does not support before saving a filter.
Paste a query list and inspect exactly which rows the expression includes or excludes in the browser.
Iterate on a pattern until it cleanly represents a reporting cohort you can reuse in GSC.
Watch the full workflow
A regex can work in a general tester yet fail in Search Console because the engines differ. I’ll show you how to use presets, format the input, test a valid pattern, interpret true and false rows, catch unsupported P-C-R-E syntax, handle brand filters, understand limitations, and validate the final filter safely in G-S-C.
Search Console uses R-E-two syntax, which supports ordinary groups, alternatives, character classes, anchors, and quantifiers but rejects several P-C-R-E features. This browser tool lints known incompatibilities and tests the remaining pattern against your own query list.
Use it to segment question queries, comparisons, long-tail searches, branded traffic, or recurring product terms before creating G-S-C reports. Testing real query examples helps reveal patterns that are technically valid but too broad, too narrow, or poorly anchored.
Choose a question, comparison, long-tail, brand, or non-brand preset. Brand and non-brand use the same generated brand pattern; Search Console’s Include or Exclude control creates the difference. Add every important brand spelling before inserting the pattern.
Put the regex on line one without surrounding slashes, then add one query per following line. Select Analyze. This example anchors how or what at the beginning, uses a word boundary, and tests mixed matching and nonmatching queries entirely in the browser.
The output lists syntax issues and per-query match booleans. An empty issues array means no known problem was detected. It does not prove that the regex captures the audience you intended, so inspect both true and false examples.
Matching is case-insensitive, so the uppercase how example can still match. Anchors and word boundaries remain important: they control position and token edges, while case folding only removes capitalization differences.
This second pattern uses negative lookahead to exclude a brand. R-E-two does not support lookahead, so the linter reports the construct and all query tests return false. That avoids pretending a broken Search Console pattern ran successfully.
The linter also checks numeric and named backreferences, atomic and conditional groups, possessive quantifiers, lookbehind, and backslash Z. The browser compile check catches unbalanced brackets and similar syntax errors before any rows are marked as matches.
For brand segmentation, enter names and common variants, insert the generated pattern, and test real queries. Use it with an Include custom regex for branded traffic or an Exclude custom regex for non-brand traffic. Negative lookahead is neither needed nor supported.
Features include common preset patterns, brand-term generation, copy support, specific explanations for incompatible tokens, rewrite direction, case-insensitive per-query tests, ordinary R-E-two constructs, and fully local processing of the pattern and query list.
This is a compatibility linter and browser tester, not Google’s production R-E-two runtime. JavaScript and R-E-two can differ at Unicode and escaping edges. The tool does not connect to G-S-C, estimate matched clicks, or automatically build exclusion filters.
Copy the lint-clean pattern, paste it into the intended G-S-C custom query filter, and confirm Include versus Exclude. Review examples from both sides and compare the filtered clicks and impressions with expectations. Save the tested query set so future regex edits can be checked consistently.
Copy only a lint-clean pattern, choose the correct Include or Exclude filter in Search Console, and inspect sample queries plus the filtered total. Recheck after editing the regex. Local true and false results are useful evidence, but the production G-S-C filter remains the final validation step.