TestIn browser

Regex tester

A local regular expression tester for developers: enter a pattern, flags and test text, highlight matches and inspect groups without sending data to a server.

Use cases
Code regexLog parsingCapture groupsPattern validation
Regular expression
Test text
Highlighted matches
order-1024 paid
order-1025 pending
order-1026 paid

How to use it

  1. 1Enter a regular expression without wrapping slashes.
  2. 2Set JavaScript RegExp flags such as g, i, m or u.
  3. 3Paste test text and click Test.
  4. 4Review highlighted matches and the group list.

Questions

Are the pattern and test text sent to a server?

No. Testing runs through JavaScript RegExp in your browser. Data is not sent to or stored on a server.

Which flags are supported?

The tool supports flags understood by the current browser, such as g, i, m, s, u, v and d. Invalid or duplicate flags show an error.

Why is there a 500 match limit?

The limit keeps the page responsive for heavy expressions and very large result sets. The first 500 matches are still shown.

Other tools

All tools