Kastavo

Regex Tester

Type the regular expression, the flags, and the test text — results appear automatically.

//

Processed locally in your browser.

Ready-made templates

Common patterns, already written. Click "Use in tester" to load the expression and a sample text into the fields above.

Not sure? Turn your internet off and try — it still works.

How it works

Useful for developers validating patterns for validation, data extraction, or text replacement before using them in code. The search always finds every match in the text (not just the first), regardless of whether you include the "g" flag or not. Capture groups — the parenthesized parts of your pattern — appear listed under each match. If the regular expression has a syntax error, the tool shows the error message from your browser's own regex engine, without crashing the page.

Frequently asked questions

Related tools

This site uses cookies to improve your experience and analyze traffic. By continuing to browse, you agree to our Privacy Policy.