Home › Analytics & CRO Tools › GA4 Regex Tester

GA4 Regex Tester

Check which page paths or values a regex matches before using it in GA4.

How it works

GA4 offers two modes: matches regex must match the whole value, while contains regex matches any part.

Why use it

Everything runs in your browser: nothing you type is sent to a server, so it is safe for client and unpublished work.

Frequently asked questions

Why does my regex match nothing in GA4?

With matches regex the pattern must cover the entire value. Add .* at the ends or switch to contains.

Which regex syntax does GA4 use?

RE2, which does not support lookaheads or backreferences.

Last reviewed 2026-11-25 · How we build and check our tools