Codes & text

Regex Tester

Test a JavaScript regular expression against your text with live highlighting, capture groups, named groups and replace. Runaway patterns are stopped after 1.5 seconds.

How to use Regex Tester

  1. Write a pattern and flags JavaScript regular expression syntax.
  2. Paste test text Matches are highlighted as you type.
  3. Inspect groups or replace See $1, named groups and the replaced text.

Regex Tester FAQ

Do I need an account?
No. Open the page and use it.
Is what I enter sent anywhere?
This tool runs in this browser tab and does not ask for an account. What you enter is not sent anywhere.
Does it cost anything?
No. It is free and open source.
Can I use it on my phone?
Yes, in a current mobile browser. Tools that need a physical keyboard or mouse are easier on a computer.

All free tools