Regex Tester

Free. No sign-up. Your input is processed in your browser.

Try a pattern against your text.

How to use it

  1. Enter the pattern without surrounding slashes.
  2. Set flags such as g, i or m.
  3. Paste the text and read the matches.

JavaScript rules

Regex dialects differ. A pattern that works here may behave differently in .NET, Java or Python.

Slow patterns

Nested repetition such as (a+)+$ can take a very long time and freeze the page. If that happens, reload the page. Input is limited to 100,000 characters and 1,000 matches.

Questions

Are named groups shown?

Yes.

Do I need to double backslashes?

No. Type the pattern itself.

Related tools

See all tools