Regex Tester
How to Use
Follow these simple steps to get started instantly — no signup required.
Write your pattern
Enter a regular expression — no delimiters needed.
Set your flags
Toggle g (global), i (case-insensitive), and m (multiline) as needed.
Paste a test string
Add realistic sample text — URLs, emails, page paths — to test against.
Review live matches
Matches update live as you type, with match details listed below.
Test regex before it breaks your tracking
Regular expressions power a surprising amount of marketing infrastructure: GTM trigger conditions, GA4 audience definitions, redirect rules, content groupings. A pattern that over-matches fires tags on the wrong pages; one that under-matches silently drops conversions.
Testing against realistic sample strings — actual URLs from your site, not idealized examples — is the only way to know a pattern behaves before it ships. This tester gives you live matching with the exact engine GTM uses.
The patterns marketers actually need
Most analytics regex falls into a few shapes: matching URL paths (^/blog/.*), extracting query parameters, matching a list of pages (/(pricing|demo|contact)), and case-insensitive brand matching. Build them once, verify against real URLs, and save the tested pattern in your tracking documentation.
Live matching, zero setup
Matches highlight as you type, with each match listed with its position and captured groups. Everything runs in your browser — no login, and your test strings are never sent anywhere.