Regex Tester

Development

Test a JavaScript regular expression, see every match highlighted and check the capture groups as you type.

Pattern JavaScript / ECMAScript3 matches
Flags
Try an example
23 characters
Highlighted matches3 matches
Bart 10
Lisa 8
Maggie 1

Match details

Index ranges are zero-based

3 matches

  1. 1
    Bart 100–7
    1
    Bart
    2
    10
    name
    Bart
    age
    10
  2. 2
    Lisa 88–14
    1
    Lisa
    2
    8
    name
    Lisa
    age
    8
  3. 3
    Maggie 115–23
    1
    Maggie
    2
    1
    name
    Maggie
    age
    1
About this tool

Write a JavaScript regular expression and a test string, and every match is highlighted as you type. Capture groups are listed so you can check what each part picked up.

It uses your browser's own regex engine, so results match what JavaScript will do. Other languages (PCRE, Python, Java) differ in a few features.