Developer tool

Regex Tester - Regular Expression Tool

Enter a pattern and test text; matches are highlighted and capture groups are listed below.

RegexChoose pattern and flags
Result0 matches

        

Practical guide

Test regex patterns with instant matches

See pattern and flag changes on text and inspect matches, groups and invalid expressions before using them.

What is a Regex Tester?

This tool streamlines workflows such as email and code validation and log line analysis in one place.

How to use it

  1. Enter the regular expression.
  2. Set test text and g/i/m/u flags.
  3. Inspect highlighted matches and groups.

Common uses

  • Email and code validation
  • Log line analysis
  • Text extraction and cleanup

Practical examples

Email matching

See whether a pattern captures too much or too little from sample addresses.

Log grouping

Split date, level and message parts with capture groups.

Frequently asked questions

Can regex performance be a problem?

Yes. Poorly designed nested repetition can be very slow on large text.

What does the global flag do?

It searches for all matches instead of stopping after the first.