GSC Regex Checker: Will Your Pattern Actually Run?

Paste a pattern. Find out whether it actually runs in Search Console, GA4 and Clarity, before you waste an afternoon wondering why a filter returns nothing.

Why this exists. Search Console and GA4 both run Google’s RE2 engine, which has no lookaheads, no lookbehinds and no backreferences. Most regex on the internet was written for PCRE or JavaScript, which have all three.

A pattern that RE2 rejects does not warn you. It returns an error you can miss, or a segment with no traffic that looks exactly like a segment with no traffic. This checks first.

0 / 4096

Start from a working pattern

Each of these is RE2-safe. Click to load it into the checker.

What the checker is looking for

The full compatibility picture, if you would rather read it than paste something.

ConstructSearch ConsoleGA4ClarityDo this instead
(?!...) negative lookaheadNoNon/aWrite the positive pattern, set the filter to Doesn’t match regex
(?=...) positive lookaheadNoNon/aRewrite as explicit alternation
(?<=...) lookbehindNoNon/aAnchor with ^ or match the whole shape
Backreference \1NoNon/aWrite the repetition out literally
Atomic group (?>...), recursionNoNon/aNot available in RE2 at all
Possessive quantifier a*+NoNon/aUse a plain greedy quantifier
Case flag (?i)YesYesn/aPut it at the very start of the pattern
Anchors, classes, alternation, \bYesYesn/aStandard behaviour
Pattern length4,096Generousn/aSplit a long brand list across two stacked filters

Three differences that break a working pattern when you move it.

1. GA4’s FULL_REGEXP means whole-string. Search Console matches partially by default. The same pattern set to FULL_REGEXP in GA4 can return zero rows. Use PARTIAL_REGEXP when you are porting a GSC pattern across.

2. GA4’s case default is insensitive. This contradicts most published guidance. Tested against the Data API, an uppercase pattern matched lowercase paths until caseSensitive: true was set explicitly, at which point it returned nothing.

3. Clarity does not do regex at all. Its filters advertise matchesRegex, but metacharacters are not evaluated. A literal string matched sessions; the same string with a regex dot matched nothing, and an alternation matched nothing, with no error either time. Treat Clarity filters as literal substring matching and do any real filtering after you export.

Once your pattern runs

The compatibility verdict is based on the RE2 specification and on live testing against the Search Console and GA4 APIs and the Clarity MCP in August 2026. The match preview runs in your browser using JavaScript’s regex engine, which is why it only runs after a pattern passes the RE2 check: once a pattern uses nothing RE2 rejects, the two engines agree on these constructs. Nothing you paste leaves your browser.

◙ Case Study
+443%

Our content engine grew a client 443% in 3 months.

See the process →
◙ Now Playing

Real practitioners, unscripted — every play they’d run.

Listen now →
◙ Free Forever
60

Sixty practitioner tactics. No gate, no email wall.

Browse the library →
◙ Try It Free

Model the traffic & revenue before you write a word.

Create a free account →
Scroll to Top