Omnikit
DevFilesMoneyAll tools
Ctrl K
Dev toolsFile toolsMoney calculatorsAll tools
HomeDeveloper toolsRegex Tester
EnglishالعربيةবাংলাDeutschEspañolFrançaisPolskiPortuguêsРусский

Regex Tester

dev

Test JavaScript regular expressions with live highlighting and a plain-English explanation

Runs in your browser. Nothing you type is sent anywhere. Updated on 24 Oct 2026.

Testing a regular expression shows what it matches as you type, with every capture group highlighted and a plain-English reading of the pattern. Far quicker than rerunning a script to find out why group 1 is empty. Works on JavaScript regex, and your text stays in the browser.

Next:
  • Regex Escape Escape text so a regex matches it literally in JavaScript, Python, PHP, Java, Go or .NET

How to test a regular expression

1

Type the pattern into Pattern, between the slashes, and set the g, i, m, s, u and y flag chips.

2

Paste the text to search into Test text; every match is highlighted as you type.

3

Read the Matches tab for each match, its index and its capture groups.

4

Open Replace, enter a replacement such as $1 or $<name>, and copy the result.

5

Open Explain to read each part of the pattern in plain English.

About the Regex Tester

This regex tester runs your pattern against sample text as you type and highlights every match. A table lists each match with its position and the text captured by every numbered and named group, and a replace box shows the result of String.replace with your replacement, including $1 and $<name> references.

People reach for it when a validation rule rejects input it should accept, or when a log search returns too much. Two common cases: checking that a pattern for Indian PIN codes accepts 560001 but not 56001, and working out why .* swallowed half a line when you wanted only the first quoted value.

The tester uses the JavaScript engine in your browser, so the flags g, i, m, s, u and y behave exactly as they will in your Node.js or front-end code. Other flavours such as PCRE, Python and Java differ in places (possessive quantifiers, inline flags), so test those in their own language. Your pattern and text never leave your device.

The explain panel breaks the pattern into parts in plain English: character classes, quantifiers, anchors, groups, alternation, escapes and lookarounds. It also warns when a group repeats something that already repeats, such as (a+)+, which can freeze a page on text that almost matches. Matching runs in a background worker with a time limit, so a pattern like that is stopped and reported instead of locking your browser. Related tools: Diff Checker, URL Encoder.

Frequently asked questions

Is this regex tester free?

Yes. There is no signup and no limit on how many patterns you test. The page is supported by a small number of ads shown outside the tool, never inside it.

Which regex flavour does it use?

JavaScript, through your browser's own RegExp engine. Results match what you get in Node.js, Deno and front-end code. PCRE, Python and Java regex differ in some features, such as possessive quantifiers and inline flags, so check those in their own language.

How do I see capture groups?

Wrap part of the pattern in brackets, for example (\d{4}), or name it with (?<year>\d{4}). The match table shows every numbered and named group for each match, and shows an empty cell when a group did not take part.

Why does the tester say my pattern was stopped?

The pattern took longer than the time limit on your text, usually because of catastrophic backtracking: a repeated group that contains another repetition, such as (a+)+ or (\w+\s?)*. Make the inner part more specific or remove one of the repetitions.

How do I use a regex to find and replace?

Type the replacement in the Replace box. Use $1, $2 for numbered groups, $<name> for named groups and $& for the whole match. Turn on the g flag to replace every match instead of only the first.

Is my text uploaded anywhere?

No. The pattern runs in a background worker inside your browser. Nothing you type is sent to a server, so it is safe to test on logs or data that contain personal details.

Still stuck? Ask about Regex Tester and anybody who knows can answer. No account needed.

Also works as: Regex Checker · Regular Expression Tester.

Same job, other tools: Link Preview Checker – Find the missing tag behind a WhatsApp or Slack link with no picture · Readability Checker – Flesch reading ease and grade level, with what to change.

On the related tools: IBAN Check Digit Calculator – Build an IBAN from a country and account number: the two check digits are calculated.

Related tools

All developer tools
Title Tag and Meta Description CheckerTitle and meta description length in characters and pixels, and where Google cuts themIBAN Validator and CheckerCheck IBANs from 89 countries: length, format and mod-97 check digits, with the bank codeURL Parser & Query EditorSplit a link into its parts, edit the parameters and rebuild itInvisible Character DetectorFind zero-width spaces, odd spaces, bidi controls and lookalike letters, then clean themDiff CheckerCompare two texts side by side and see every added and removed lineJSON DiffCompare two JSON documents and list every added, removed and changed valueOpen Graph PreviewPaste a page and see the share card for Facebook, LinkedIn, X, WhatsApp and SlackKeyword Density and ReadabilityWord and phrase counts, densities, reading time and a Flesch readability score

In the collection Debug and Inspect.

Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator
EnglishالعربيةবাংলাDeutschEspañolFrançaisPolskiPortuguêsРусский
GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET Paper 1)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)