Regex tester for JavaScript expressions

Test JavaScript regex with groups and indices. Isolated worker, 1 second limit, 100,000 text characters, 1,000 results and 500,000 captured characters. Not PCRE.

Your inputs stay herePUFFINMINT

Set your data

Set your data

Result

Enter your data and run the tool. Your result will appear here.

The values you enter stay on this page. Reloading or closing it clears them.

We count which tools are used most, without including entered values or file contents in the statistics. Privacy

How to use the tool

  1. Fill in these fields: JavaScript expression (without / / delimiters), Flags (g i m s u v y d), Source text.
  2. Select “Test expression” to obtain the result.

Method and principles

ECMAScript RegExp

Practical example

Input
  • JavaScript expression (without / / delimiters): \w+
  • Flags (g i m s u v y d): g
  • Source text: Puffinmint 123
Result
[ { "index": 0, "match": "Puffinmint", "groups": [], "named": null }, { "index": 11, "match": "123", "groups": [], "named": null } ]

Limits and checks

Limits and checks
ParameterValue
JavaScript expression (without / / delimiters)≤ 2000 characters
Flags (g i m s u v y d)≤ 10 characters
Source text≤ 100000 characters

Sources and further reading

Favorites