Skip to main content
dubinity

Developer & Web

Regex Tester

Test regular expressions live with highlighted matches, capture groups and a replacement preview.

  • Runs in your browser
  • Works on mobile
  • In: TEXT
  • Out: TEXT
Loading the tool…

Your files and text are processed on your own device, inside this page. Nothing is uploaded to Dubinity or stored, and closing the tab discards it. How privacy works

About Regex Tester

Type a pattern and see every match highlighted as you go, with a table of capture groups and named groups, and an optional preview of what replace() would produce.

The pattern runs in a background worker with a two second limit, so a pattern that backtracks catastrophically - (a+)+$ is the classic - stops the worker instead of freezing the page, and you are told what happened.

This is JavaScript's engine, the same one your browser uses.

Questions

Was this tool helpful?

All developer tools
  • Text Cleaner

    Fix text copied from a PDF or email: extra spaces, broken line breaks, invisible characters, stray HTML.

    TEXT
    Runs in your browserOpen tool
  • Sort Lines

    Sort a list alphabetically, naturally (file2 before file10), by length, reversed or shuffled.

    TEXT
    Runs in your browserOpen tool
  • Keyword Density Checker

    Count the words and phrases in a page and see how often each one appears, with stop words filtered out.

    TEXT
    Runs in your browserOpen tool
  • JSON Formatter

    Format and indent JSON, or minify it, with exact error positions and big numbers kept as written.

    JSON
    Runs in your browserOpen tool
  • Password Generator

    Create strong random passwords with the character rules a site demands, and see the real entropy.

    NONE
    Runs in your browserOpen tool
  • What Is My IP

    See the IP address our server sees, the rough location attached to it and what your browser sends.

    NONE
    Server lookupOpen tool