Skip to content

Regex tester with live highlighting

Type a pattern, paste test text, and every match highlights instantly with its capture groups listed in a table below — no Run button, no page reload. A recipe library covers the patterns people reach for constantly (email, URL, Indian mobile number, PIN code, date), and a runaway pattern is caught and stopped automatically instead of freezing the tab.

  • Nothing you type leaves this page
  • Works offline once loaded
  • Free forever, no signup
/ /{{ flags }}

This pattern nests quantifiers, a shape that can cause catastrophic backtracking on the wrong input. It runs in a background worker with a 0.8-second watchdog, so it can never freeze this tab — a runaway match is aborted automatically with a warning below.

Highlighted
Matches & capture groups
#MatchGroups
{{ i + 1 }} {{ m.match }} — ${{ gi+1 }}={{ g ?? '—' }}

From a free tool to your own software

Data validation and text extraction software

Mobile numbers typed with spaces, PIN codes missing a digit, GSTINs pasted from a PDF: messy text arrives through every form, spreadsheet and inbox. Businesses cleaning it by hand, or with a pattern someone copied years ago, end up with bounced messages, failed KYC checks and duplicate customers. Software that validates at entry and extracts fields automatically keeps that mess out of your records.

  • Validated forms for Indian data formats

    Check mobile number, PIN code, PAN and GSTIN formats as customers type, with clear messages that fix errors at the source rather than in a back-office clean-up.

  • Bulk import and clean-up tools

    Upload spreadsheets of leads, vendors or products and have names, phone numbers and addresses standardised, deduplicated and flagged for review before they enter your system.

  • Document and email data extraction

    Pull invoice numbers, amounts, dates and reference IDs out of emails and PDFs using a mix of pattern rules and AI, then send them straight into your accounts or CRM.

  • Message and ticket routing

    Read incoming support emails, chats and WhatsApp messages, recognise order numbers or keywords, and assign each one to the right queue with the order already linked.

Who we build this for: Lenders and NBFCs, insurers, e-commerce and logistics companies, and back offices processing forms, sheets and emails.

This tool runs entirely in your browser. The team that built it designs custom software for businesses and runs DigiSign, our own signage platform, in production.

How to use this tool

  1. Type your pattern and pick flags

    g for all matches, i to ignore case, m for multiline, s to let . match newlines.

  2. Paste test text

    Matches highlight live; the table below lists every capture group by number.

  3. Use a recipe or the replace preview

    Click a ready-made pattern from the recipe row, or switch on Replace to preview a substitution with $1-style group references.

Questions people ask

How do I test a regex online?

Type the pattern, paste some sample text, and matches highlight instantly — there is no Run button, and no text is ever sent anywhere; matching happens in a background worker inside your own browser.

What do the g, i and m flags mean?

g finds every match in the text instead of stopping at the first one; i makes matching case-insensitive; m makes ^ and $ match at the start and end of each line rather than only the whole string; s (dotAll) lets . match newline characters too.

What regex matches an Indian mobile number?

^[6-9]\d{9}$ — exactly ten digits, starting with 6, 7, 8 or 9, which is the valid starting-digit range for Indian mobile numbers. It is in the recipe row above, along with PAN, GSTIN, PIN code and a date pattern.

Why does my regex seem to freeze the page?

Nested quantifiers like (a+)+ can cause "catastrophic backtracking" against certain input — the matching engine explores an exponential number of paths trying to fail. This tool runs matching in a Web Worker with an 800ms watchdog, so a runaway pattern is stopped and flagged with a warning instead of ever freezing your tab.

Which regex flavor does this test against?

JavaScript (ECMAScript) — the same engine browsers and Node.js use. Most patterns transfer to other languages' regex flavors with only minor syntax differences (named groups and lookbehind support vary the most between engines).

Who makes these tools

Bookmark this page — the tool keeps working offline, and your settings stay in this browser. Built by Dynamb Technologies, who build software for businesses.