Find patterns without guessing

Test your regex.
Find the pattern.

Visualize matches, capture groups, and replacements with JavaScript regular expressions.

Text is processed only in your browser
Regex TesterTest · Capture · Replace
/ /
TEST TEXT
MATCHES0 matches

Matches will appear here

The replacement preview will appear here
Enter an expression to get started JavaScript engine · 800 ms execution limit
REGEX GUIDE

Test JavaScript regular expressions online

Which regex flavor is supported?

This tester uses the native JavaScript RegExp engine and supports common flags including global, ignore-case, multiline, dot-all, and Unicode modes.

How do capture groups work?

Parentheses create numbered groups such as $1. Named groups use (?<name>...) and can be referenced during replacement with $<name>.

Can a regular expression be unsafe?

Some patterns cause catastrophic backtracking on particular input. BeyUtils evaluates patterns in an isolated worker and stops evaluations that exceed the time limit.

04 / REGEX

Clear patterns.
Safer results.

01

Visible matches

Highlight every result and inspect its position, value, and captured groups.

02

Instant replacement

Preview substitutions using references such as $1, $&, and named groups.

03

Execution limit

Expressions run in an isolated worker that stops if evaluation takes too long.