---
title: "Regex Tester Online with Live Matches and Groups | VulCode"
description: "Online regex tester: type a regular expression and flags, paste your text and see matches and capture groups live. JavaScript engine, free, no account."
url: "https://vulcode.com/en/tools/regex-tester"
lang: "en"
---

[Home](https://vulcode.com/en) [Resources](https://vulcode.com/en/resources) [Tools](https://vulcode.com/en/tools)

# Regex tester online

Online regex tester: type a regular expression and flags, paste your text and see matches and capture groups live. JavaScript engine, free, no account.

[Free quote](https://vulcode.com/en/quote) [Full pricing](https://vulcode.com/en/services/pricing)

Pattern (/g)

Enter a pattern and the matches light up in the text.

Flags

all matches g ignore case i ^ and $ at every line m

Text to search

- To paste into JavaScript
  `/(\d{2})-(\d{3})/g`
  Copy

Enter a pattern and the matches light up in the text.

## In the text

```

```

## Matches

## How to use it in three steps

Step by step, with this page's example.

- Enter the pattern and flags.

- Paste the text to test.

- See matches and groups live.

What you enter

Pattern (\d{2})-(\d{3}) on the text "Codes: 00-950 Alpha, 30-001 Beta, 80-827 Gamma"

What you get

```
00-950 (group 1: 00, group 2: 950)
30-001 (group 1: 30, group 2: 001)
80-827 (group 1: 80, group 2: 827)
```

## Questions

- **What is a regular expression?**: A regular expression (regex) is a pattern that describes pieces of text, for example (\d{2})-(\d{3}) matches the postal code 00-950. This tester highlights the matches, capture groups and flags as you type, using your browser's JavaScript engine, and sends nothing anywhere.
- **How do I test a regex online?**: Enter the pattern and flags, paste the text to test and watch the matches and groups update live. Everything is calculated in your browser.
- **How do I write a regex for a postal code?**: The pattern \d{2}-\d{3} matches a Polish postal code such as 00-950. Paste it into the pattern field; brackets around the digits, as in (\d{2})-(\d{3}), show each part in its own group.
- **Which regex engine does it use?**: The browser's JavaScript engine. Its syntax is close to PCRE, but not everything from other languages behaves the same.
- **What is the g flag for?**: It finds every match instead of stopping at the first.

## Related tools

The tool does one job. If the same thing should happen automatically in your bot, server or system, we build it.

- ### [Text diff checker: compare two texts](https://vulcode.com/en/tools/text-diff-checker)
  Paste two versions, see the changed lines and get a unified diff patch.

- ### [JSON formatter and validator](https://vulcode.com/en/tools/json-formatter)
  Paste JSON and get it formatted, or the exact place of the error.

- ### [Cron expression generator and explainer](https://vulcode.com/en/tools/cron-expression-generator)
  Turn a cron expression into a plain sentence and see the next run times.

## Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
