Regex Tester
Test JavaScript and RE2-style regular expressions against your text and see every match, its position and capture groups.
📘 New to this tool? Follow the step by step guide with screenshots.
Quick answer: The Regex Tester turns your input, pattern and flags into a clear report with fixes. Fill in the fields and the result appears straight away. It is free, needs no account and runs in your browser, so nothing you enter is saved on a server.
On this page
What is the Regex Tester?
Test regular expressions with flags, see all matches, positions and capture groups, for SEO and developers. It is built for developers and technical SEOs.
How do you use the Regex Tester?
- Paste your text into Input.
- Enter Pattern (example: ^(how|what|why)\b).
- Enter Flags (example: gim).
- Read the result, then copy or download it.


For a fuller walkthrough, see the step by step guide to the Regex Tester.
Which inputs does the Regex Tester use?
| Input | Type | Example value |
|---|---|---|
| Input | Text box | how to fix crawl errors seo agency london what is a… |
| Pattern | Text | ^(how|what|why)\b |
| Flags | Text | gim |
What does a worked example show?
Using Pattern ^(how|what|why)\b and Flags gim, the tool shows: 2 matches Match 1 at 0: "how" groups: how Match 2 at 42: "what" groups: what. Swap in your own input to get your own result.
SEO uses
Test regex before using it in Google Search Console filters, Google Analytics, redirects or Screaming Frog.
Key terms
- Core Web Vitals
- Google metrics for real user experience: Largest Contentful Paint for loading, Interaction to Next Paint for responsiveness and Cumulative Layout Shift for visual stability. Good thresholds are 2.5 seconds, 200 milliseconds and 0.1.
- HTML
- HyperText Markup Language, the standard language that structures web pages with elements such as headings, paragraphs, links and images. Search engines read the HTML to understand page content, links and metadata.
- Regular expression
- A pattern language for finding and matching text, used in code, Google Analytics filters and Search Console reports. Small mistakes can match far more or less than intended, so test patterns on sample data first.
- Character count
- The number of letters, numbers, spaces and symbols in a piece of text. Many platforms set limits by characters, such as title tags, meta descriptions and social posts, so counting before publishing avoids truncation.
- Search engine optimisation
- The practice of improving a website so it ranks higher in unpaid search results. It covers technical health, on-page content, links and user experience, and it follows Google Search Essentials rather than shortcuts.
How we checked this tool
We tested the Regex Tester in Chrome on 2 November 2026 with the example inputs shown above and checked the output by hand. It runs in your browser and does not store what you enter. Read our editorial policy, disclaimer and privacy policy, or report an error on WhatsApp.
Frequently asked questions
What does the Regex Tester do?
Test regular expressions with flags, see all matches, positions and capture groups, for SEO and developers.
Who should use the Regex Tester?
The Regex Tester is made for developers and technical SEOs. It is simple enough for beginners and quick enough for agencies that run the same check many times a week.
Is the Regex Tester free?
Yes. The Regex Tester is free with no account, no daily limit and no watermark, and it sits alongside more than 500 other free tools on this site.
Does the Regex Tester save my data?
No. All processing happens in your browser with JavaScript. The values and text you enter stay on your device and are not sent to or stored on our server.
How reliable are the results?
The tool follows standard rules and best practice. Confirm important findings in the official tool, such as Google Search Console, before acting.
Where can I learn more about the Regex Tester?
Read the step by step guide with screenshots, linked above, or browse the other free developer tools for seo for related checks.
Sources: MDN HTML reference and W3C web standards, checked 2 November 2026.