---
title: "Regex Checker - Test regex patterns against text"
description: "Test JavaScript regex patterns against text input. It supports common flags and match checks, which is useful for verifying pattern behavior, drafting input validation rules, and checking text extraction patterns."
canonical_url: "https://web-toolbox.dev/en/tools/regex-checker"
meta:
  author: K
  "og:description": "Test JavaScript regex patterns against text input. It supports common flags and match checks, which is useful for verifying pattern behavior, drafting input validation rules, and checking text extraction patterns."
  "og:image": "https://web-toolbox.dev/og/en/tools/regex-checker-1907060c.png"
  "og:image:alt": "Regex Checker"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "Regex Checker - Test regex patterns against text"
---

> Index of every page on this site: [llms.txt](https://web-toolbox.dev/llms.txt)

# **Regex Checker**

Check how regex patterns match your text

**Pattern**

Enter the pattern itself without surrounding slashes.

Try

**Text to test**

You can also test logs, notes, and other multi-line text.

**Match found**Match count: 2

support@example.com invalid-address hello.user@web-toolbox.dev

1. **Match 1**`support@example.com`0-19 · 1Line 1Column
2. **Match 2**`hello.user@web-toolbox.dev`36-62 · 3Line 1Column

## What is Regex Checker?

Regex Checker is a tool for testing JavaScript regex patterns against text and reviewing where they match. It fits work like drafting validation patterns for email or URL input and building extraction rules, when you want to quickly verify behavior before using a pattern in code.

Changing the pattern, text, or flags updates the result right away. Non-matching input and invalid patterns can be tried as they are.

## How to Use

1. Enter the regex pattern you want to test.
2. Paste the target text into the text area.
3. Turn the `**g**`, `**i**`, and `**m**` flags on or off as needed.
4. Review the match result and highlighted sections, then adjust the pattern.

A short one-line sample is enough for quick checks, but multi-line text is helpful when you want to confirm how line-based conditions behave.

## Main Settings

### Find all matches g

Turn on the `**g**` flag to find every match instead of stopping at the first one. It fits extraction patterns and repeated values.

### Ignore letter case i

Use the `**i**` flag to ignore uppercase and lowercase differences. It helps when you want to accept variations in user input.

### Treat input as multi-line text m

Turn on the `**m**` flag to make `**^**` and `**$**` work with each line instead of only the start and end of the full string. Try it with multi-line text to see how line anchors behave.

## Use Cases

- Drafting validation patterns for forms and input checks
- Testing extraction rules for URLs, email addresses, or numeric strings
- Checking whether a log or document contains values in a specific format

## Things to Keep in Mind

- This tool assumes JavaScript regex syntax, so some features may behave differently from other languages.
- The input field is meant for the pattern itself rather than a full regex literal in source code. When you move a tested pattern into code, adjust escaping to match the string syntax of the language you use.

**How was your experience?**

Last updated: March 31, 2026

### **Related Tools**

- [<h4>**JSON Formatter**</h4>](https://web-toolbox.dev/en/tools/json-formatter)
- [<h4>**UUID Validator**</h4>](https://web-toolbox.dev/en/tools/uuid-validator)
- [<h4>**HTML Escape/Unescape**</h4>](https://web-toolbox.dev/en/tools/html-escape-unescape)
- [<h4>**JWT Decoder**</h4>](https://web-toolbox.dev/en/tools/jwt-decoder)
- [<h4>**SQL Formatter**</h4>](https://web-toolbox.dev/en/tools/sql-formatter)
- [<h4>**XML Formatter**</h4>](https://web-toolbox.dev/en/tools/xml-formatter)
- [<h4>**Color Contrast Checker**</h4>](https://web-toolbox.dev/en/tools/color-contrast-checker)
- [<h4>**Credit Card Validator**</h4>](https://web-toolbox.dev/en/tools/credit-card-validator)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://web-toolbox.dev/en#website","@type":"WebSite","description":"アカウント登録不要で使える無料Web開発ツール80種類以上。JSON整形、Base64変換、カラーコード変換、QRコード生成などをブラウザ上で瞬時に実行。開発者の作業効率を大幅に向上させます。","inLanguage":"en-US","name":"Web ToolBox","url":"https://web-toolbox.dev/en","translationOfWork":{"@id":"https://web-toolbox.dev/#website"}},{"@id":"https://web-toolbox.dev/en/tools/regex-checker#webpage","@type":"WebPage","description":"Test JavaScript regex patterns against text input. It supports common flags and match checks, which is useful for verifying pattern behavior, drafting input validation rules, and checking text extraction patterns.","name":"Regex Checker - Test regex patterns against text","url":"https://web-toolbox.dev/en/tools/regex-checker","breadcrumb":{"@id":"https://web-toolbox.dev/en/tools/regex-checker#breadcrumb"},"isPartOf":{"@id":"https://web-toolbox.dev/en#website"},"potentialAction":[{"@type":"ReadAction","target":["https://web-toolbox.dev/en/tools/regex-checker"]}]},{"@id":"https://web-toolbox.dev/en/tools/regex-checker#/schema/web-application/1","@type":"WebApplication","applicationCategory":"UtilityApplication","description":"Test JavaScript regex patterns against text input. It supports common flags and match checks, which is useful for verifying pattern behavior, drafting input validation rules, and checking text extraction patterns.","name":"Regex Checker - Test regex patterns against text","operatingSystem":"Windows, macOS, Linux, Android, iOS"},{"@id":"https://web-toolbox.dev/en/tools/regex-checker#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://web-toolbox.dev/en","position":1},{"@type":"ListItem","name":"Code","item":"https://web-toolbox.dev/en/categories/code","position":2},{"@type":"ListItem","name":"Regex Checker","item":"https://web-toolbox.dev/en/tools/regex-checker","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://web-toolbox.dev/sitemap.md) for all pages.
