RU

RegEx tester

Find matches and inspect capture groups in text.

Result

Your result will appear here.

ReadyCtrl / ⌘+Enter
Processing runs locally in your browser

About this tool

Test JavaScript regular expressions on your text. Inspect match offsets and values from both numbered and named capture groups.

How to use it

Enter a pattern without surrounding slashes, add any flags and paste the test text. Press Find. The g flag finds all matches and i ignores case.

Practical example

The pattern (?<year>\d{4})-\d{2}-\d{2} extracts the year from 2025-03-08. Add g to find every date in the text.

Frequently asked questions

Why does a match sometimes time out?

Nested repetition can cause extensive backtracking. Matching runs in a worker with a time limit. Simplify the expression or shorten the test text.

What units are used for offsets?

Offsets count UTF-16 code units, as JavaScript’s index property does. Some characters, such as emoji, occupy two units.