Regex Tester

All tools

Enter a regex pattern, flags, and input text. Toolinix will highlight matches and list them.

Common flags: g i m s u

Matches
0

One match per line.

Preview

        

Matches are highlighted.

What is a regular expression?

A regular expression (regex) is a pattern used to search, match, or extract parts of text.

This tool runs in your browser and helps you test patterns quickly without sending data to a server.

How to use the Regex Tester

  1. Enter your regex pattern (without surrounding slashes).
  2. Add flags like g (global), i (ignore case), or m (multiline).
  3. Paste your input text.
  4. See the matches list and highlighted preview.

Tips

  • Use g to find all matches, not just the first one.
  • Escape backslashes in some contexts (e.g. \d, \b).
  • If you get an error, the pattern may be invalid for JavaScript regex.

Related tools

You may also find these tools useful.

Regex Tester FAQ

Does this tool support PCRE features?
It uses JavaScript regular expressions, so some PCRE features may not be available.
Is my text sent to the server?
No. Everything runs locally in your browser.
Why do I only see one match?
Add the g flag to find all matches.