Regular expression tester online

Type a regex and test text to see every match with its groups, and try replacements live.

About Regex tester

Enter a pattern and flags (g i m s u) and paste test text. Every match is highlighted, with a table of matches, positions and group values below. Type in “Replace with” to preview a replacement at the same time.

It uses your browser's JavaScript engine, which supports lookbehind, named groups and Unicode properties (\p{L}); most patterns also work in Python, PHP and Java.

FAQ

Simple email regex?

^[^\s@]+@[^\s@]+\.[^\s@]+$

More tools here

Other tools you may like