SimplyToolbox
⌘K
ImageVideoPDFDeveloperCalculatorBlogAbout
HomeDeveloper ToolsRegex Tester
πŸ”

Regex Tester

Test regular expressions with live match highlighting.

//g

What this Regex Tester does

This tool lets you write a regular expression, set the standard flags, and immediately see every place it matches inside your test string. As you type either the pattern or the sample text, the results update live: the total match count, a highlighted preview where each match is wrapped in a yellow mark, and a breakdown of any captured groups for every match.

It is built for developers, data wranglers, and anyone learning regex who wants instant feedback instead of guessing. Because it uses the browser's own JavaScript RegExp engine, the syntax and behaviour are exactly what you get in Node.js and front-end JavaScript code, so a pattern that works here will work in your project.

How to use it

Type your expression into the Pattern field. The leading and trailing slashes shown around the field are just visual delimiters, so enter the pattern itself without them. Use the flag checkboxes to toggle g (global, find all matches), i (case-insensitive), m (multiline, so ^ and $ match line boundaries), and s (dotall, so the dot also matches newlines).

Paste or type the text you want to search into the Test String box. The match count and highlighted output appear automatically. If your pattern contains one or more capture groups written with parentheses, a Captured Groups section lists the contents of each group for every match, which is handy for verifying extraction logic before you copy the pattern into your code.

Tips and notes

The tool always evaluates matches with the global flag internally so it can list every match, even when you leave the g checkbox unticked for display purposes. If your pattern is invalid, a red error box shows the exact message from the JavaScript engine, which makes it easy to spot an unbalanced bracket or a bad quantifier.

Remember to escape characters that have special meaning in regex, such as the dot, plus, question mark, and backslash, when you want to match them literally. Group numbering starts at 1 and follows the left-to-right order of the opening parentheses.

Frequently Asked Questions

Does this Regex Tester upload my data?β–Ό
No. Everything runs locally in your browser using the built-in JavaScript RegExp engine. Your pattern and test string never leave your device or get sent to any server.
Which regex flavour does it use?β–Ό
It uses the browser's native JavaScript regular expression engine, so the syntax matches what you would use in JavaScript or Node.js. Features like lookbehind and named groups depend on your browser version.
What do the g, i, m and s flags mean?β–Ό
g finds all matches rather than stopping at the first, i makes matching case-insensitive, m lets ^ and $ match at line breaks, and s makes the dot also match newline characters.
Why are all matches highlighted even without the g flag?β–Ό
To show a complete picture, the tool internally applies the global flag when scanning, so it can list and highlight every match. The g checkbox only affects how the flags string is displayed.
How do I see captured groups?β–Ό
Add parentheses to your pattern to create capture groups. When at least one match contains a group, a Captured Groups section appears listing the contents of each numbered group per match.
Is it free to use?β–Ό
Yes, the Regex Tester is completely free with no sign-up, no limits on pattern length, and no installation required.

You might also like

{ }

JSON Formatter

Format, validate and beautify JSON

πŸ“Š

JSON to CSV

Convert JSON data to CSV format

πŸ”„

CSV to JSON

Convert CSV to JSON format

πŸ”

Base64 Encoder/Decoder

Encode or decode Base64 strings

SimplyToolbox

90+ free online tools. No signup. No limits. Just tools that work.

AboutContactBlogPrivacy PolicyTerms of Use

Image & Video

  • Image Compressor
  • Image Resizer
  • Image Converter
  • Video Compressor
  • Video to GIF
  • Screen Recorder

PDF & Text

  • PDF Compressor
  • PDF Merger
  • PDF Splitter
  • Word Counter
  • Markdown Editor
  • Text Diff Checker

Developer

  • JSON Formatter
  • Base64 Encoder
  • Hash Generator
  • Password Generator
  • UUID Generator
  • Regex Tester

Tools & More

  • Unit Converter
  • BMI Calculator
  • Currency Converter
  • QR Code Generator
  • Color Picker
  • Gradient Generator

Β© 2026 SimplyToolbox. All rights reserved.

Processing happens in your browser β€” your files stay private.