# Regex Tester

> Test patterns with live highlights and groups. Runs entirely in your browser — nothing you paste is sent anywhere.

Source: https://toffeekit.com/tools/regex-tester

**Category:** [Developer](https://toffeekit.com/category/developer) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/regex-tester

**Also useful for:** regex, regexp, pattern, match

## How it works

1. Type your regular expression into the Pattern field, without the surrounding slashes.
2. Toggle the flags you need: g global, i ignore case, m multiline, s dot all and u unicode.
3. Paste your sample into Test text and watch the matches highlight as you type.
4. Read the Matches and groups table for each match, its index and the capture groups.

## FAQ

### How do I test a regex online?

Enter the pattern, paste some text, and matches are highlighted instantly. The panel title shows the match count, and a table lists every match with its position.

### Which regex flavor does this tester use?

JavaScript (ECMAScript), the same engine your browser and Node.js use. Patterns written for PCRE, Python or Java can behave differently, for example in lookbehind and named group syntax.

### What do the g, i, m, s and u flags mean?

g finds all matches instead of the first, i ignores letter case, m makes ^ and $ match at each line, s lets the dot match line breaks and u turns on full Unicode handling.

### Why does my regex only find one match?

The g flag is off. Without it the tester shows the first match only, just like a plain match call in JavaScript. Turn on g to see them all.

### How do I see capture groups?

Wrap part of the pattern in parentheses. Each group gets its own column in the Matches and groups table, and a group that did not take part in a match shows a dash.

### Is Regex Tester free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

Regex Tester runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [JSON Formatter](https://toffeekit.com/tools/json-formatter) — Format, minify and validate JSON with clear errors.
- [Base64 Encode / Decode](https://toffeekit.com/tools/base64-encoder) — Encode text to Base64 or decode it back, UTF-8 safe.
- [URL Encode / Decode](https://toffeekit.com/tools/url-encoder) — Percent-encode query values or whole URLs.
- [HTML Entities](https://toffeekit.com/tools/html-entity-encoder) — Escape < > & and quotes, or decode entities.
- [JWT Decoder](https://toffeekit.com/tools/jwt-decoder) — Read a token's header, claims and expiry.
- [Hash Generator](https://toffeekit.com/tools/hash-generator) — MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at once.

