Regex tester online

Test regular expressions in real time — highlighted matches, flags, capture groups and replace. Uses the JavaScript RegExp engine on your device.

Pattern

Enter a pattern and test text — results update instantly.

Samples:

Test string

0 characters

Replace (optional)

Result after replace

—

Matches

0 match

    No matches — adjust the pattern or test text.

    How to use the Regex Tester

    1. Enter a pattern and choose flags (g, i, m…).
    2. Paste test text — see highlights and the list of matches.
    3. Optionally enter a replacement to see the replaced text.

    What is a regex tester?

    Illustration of developer tools: JSON, Base64, Regex

    A regex tester lets you try a regular expression on sample text: see matches, capture groups (`$1`, `$2`…) and replace results — handy for validating emails and phone numbers or parsing logs.

    Common flags

    • g find all matches (global).
    • i case-insensitive.
    • m ^ and $ match per line.
    • s / u dotAll (dot matches newlines) / unicode.

    Runs on your device

    The engine is the browser's JavaScript RegExp — same syntax as Node.js. Your text is never sent to a server.

    Why use OneTool?

    • Free — no sign-up required, no hidden fees.
    • Private — many tools run right in your browser; files are never sent to OneTool's servers.
    • Fast — drag and drop, preview, and download in a few steps.

    Related tools