Skip to main content
MultiTool
AllGuidesFinanceHealthMathConvertersDate & TimeTextDeveloperGeneratorsImagesPDFAI ToolsGames
MultiTool

Free, fast and reliable online tools for everyday tasks.

CATEGORIES

  • Finance
  • Health & Fitness
  • Math & Education
  • Converters
  • Date & Time

MORE TOOLS

  • Text Tools
  • Developer Tools
  • Generators & Fun
  • Image Tools
  • PDF Tools
  • AI Tools
  • Games

COMPANY

  • How we build
  • Guides
  • About
  • Contact
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Disclaimer

© 2026 MultiTool. All rights reserved.

Made with care for a faster, simpler web.

HOME/DEVELOPER TOOLS/TOOL

Regex Tester

Test a JavaScript regular expression against any text. See matches, capture groups and apply flags (g, i, m, s) instantly.

FLAGS
MATCHES
2matches
#1 · INDEX 14hello@multitoolbox.online
#2 · INDEX 43team@example.com
Note: JavaScript / ECMAScript regex only. Do not wrap the pattern in slashes.

What is a regular expression?

A regex is a pattern that finds text. \\d+ means “one or more digits”. This tester uses the same engine as JavaScript in your browser.

How to use this tool

  1. Type a pattern (without the surrounding slashes).
  2. Toggle flags: g (global), i (ignore case), m, s.
  3. Paste the text to test.
  4. Read match count, highlighted hits and capture groups.

Common flags

  • g — find every match, not just the first
  • i — case-insensitive
  • m — ^ and $ match each line
  • s — dot (.) also matches newlines

Your privacy

Testing runs in your browser. Your pattern and text are never sent to any server and never stored.

Frequently Asked Questions

Do I include the slashes /like this/?+

No. Type only the pattern, e.g. \d{3}-\d{4}. Flags are the buttons, not letters after a slash.

Why do I need the g flag?+

Without g, JavaScript stops at the first match. Turn g on to list every hit.

What are capture groups?+

Parentheses save parts of a match. In (\w+)@(\w+), group 1 is the name and group 2 is the domain.

Is this the same as Python or PCRE regex?+

It is JavaScript (ECMAScript) regex — the same as in the browser and Node. Lookbehinds and some Unicode details differ from Python and PCRE.

What if my pattern is invalid?+

The tool shows the error from the JavaScript engine (for example an unclosed bracket) instead of matches.

Is my text private?+

Yes. Everything runs locally. Safe for logs and sample data.

Related Tools

JSON FORMATTERBASE64 ENCODERURL ENCODERHASH GENERATOR