Free tool · Developer

Regex tester

Test JavaScript regular expressions against any text: toggle flags, see every match with start index and capture groups, and watch live highlights in the editor. Everything runs in your browser — nothing is uploaded.

1 · Pattern & text 2 · How it works How to FAQ

Pattern 0 / 2000 chars · Test text 0 / 500000 chars · match list max 500 rows

Processed locally — no data leaves your device

Updates live as you type (short debounce). Use Test for an immediate run.

0 matches

    Matches found. CloudyBot can open pages on a schedule, run the same kinds of patterns in code you control, and notify you when extracted values change — with a real cloud browser and hard billing caps.

    Try CloudyBot Free

    Free plan · No credit card · 60-second setup

    How it works

    Your browser builds a RegExp from the pattern string and selected flags (g, i, m, s). Matches are found with the same semantics as JavaScript itself — useful for Node, Deno, and browser code. The highlight layer mirrors your text with <mark> around each match; the textarea sits on top with transparent text so you still edit normally.

    Without the g flag, only the first match is found for iteration, but you can still test anchoring and capture groups. With g, all non-overlapping matches are listed in order. Empty matches advance the search index so the loop cannot hang on patterns like (?=a).

    When the pattern is invalid, the page shows the engine’s error message in red and clears highlights so you are never left guessing. Live mode debounces keystrokes so typing stays responsive on long logs.

    Common use cases

    How to (quick steps)

    1. Type your regular expression in the pattern field.
    2. Toggle flags g, i, m, and s to mirror how JavaScript will execute the regex.
    3. Paste or type sample text in the test area.
    4. Read the match list with indexes and capture groups, or fix any red pattern error.
    5. Adjust the pattern and repeat until matches look correct.

    You just tested a regex. CloudyBot can run that work on a schedule.

    Example: “Every morning, open our vendor portal, copy the status table, and message me if any row matches /(?i)delayed/.” CloudyBot combines cloud browser sessions, memory, and optional cron so you are not re-pasting into tools.

    Try CloudyBot Free

    Free plan · No credit card · 60-second setup

    Frequently asked questions

    Is this regex tester free?

    Yes. There is no signup and no paywall. Matching runs entirely in your browser.

    Is my text sent to your servers?

    No. The pattern and test string never leave your tab. Open DevTools Network to confirm there is no request carrying your input.

    Which regex flavor does this use?

    JavaScript (ECMAScript) regular expressions as implemented by your browser, including the dotAll (s) flag when your browser supports it.

    Does this verify regex security or backtracking safety?

    No. It only tests matching behavior in your browser. For production parsers, use code review, fuzzing, and timeouts appropriate to your threat model.

    Is there a maximum pattern length?

    Yes. Patterns are limited to 2000 characters. Shorten complex expressions or stage them in multiple passes.

    How large can the test string be?

    Test text is limited to 500000 characters. Trim huge logs or paste a representative slice so highlighting stays responsive.

    Why does the match list stop at 500 rows?

    The UI lists up to 500 matches for performance. Narrow your pattern, enable the global flag when appropriate, or slice smaller samples from huge logs.

    What is CloudyBot?

    CloudyBot is a hosted AI agent that can browse the web, use files, remember context, and run tasks on a schedule. This page is a free utility; the product automates repetitive extraction work instead of manual copy-paste.

    Try CloudyBot on the free plan

    30 AI Tasks / month · 2 browser sessions (10 min) · 50 MB storage · 7-day chat history

    Start free — no credit card
    Hard caps — no surprise overages No training on your data Cancel anytime