Test Your Regex Pattern

Enter a regex pattern, set flags, and see matches highlighted in your test text

/

How It Works

  1. Enter a regex pattern (without delimiters)
  2. Toggle flags: g (global), i (case-insensitive), m (multiline), s (dotall), u (unicode)
  3. Type or paste test text and see matches highlighted
  4. Review match details below the text

Common Patterns

  • \d+ – Digits
  • \w+ – Word characters
  • [a-zA-Z]+ – Letters only
  • \bword\b – Whole word
  • ^start – Start of line
  • end$ – End of line

Related Tools

JSON Formatter

Format, validate, and prettify JSON data.

URL Encoder / Decoder

Encode and decode URLs for web use.

Text Cleaner

Remove extra spaces, line breaks, and formatting issues.

Frequently Asked Questions

How does the regex tester work?

Type your regular expression pattern and test text. Matches are highlighted in real time. You can set flags like global, case-insensitive, multiline, dotall, and unicode.

What regex flags are supported?

The tool supports g (global), i (case-insensitive), m (multiline), s (dotall), and u (unicode) flags. Toggle them on or off to see how they affect matching.

Can I see details about each match?

Yes. Below the test text, you can see a list of all matches with their position (index) and captured groups. The match count is also displayed.

Is my text uploaded to a server?

No. All processing happens entirely in your browser. Your text never leaves your device.