Regex Tester

Test and debug regular expressions

Regular Expression
//
g Globali Case insensitivem Multiline
Test String
Common Patterns

Features

  • Real-time pattern matching
  • Highlight all matches
  • Extract capture groups
  • Common pattern library
  • Flags support (g, i, m)

Frequently Asked Questions

What regex flavor does this use?

This tool uses JavaScript regular expressions, which are based on Perl regex syntax with some differences.

How do capture groups work?

Parentheses () create capture groups that extract matched substrings. Access them with $1, $2, etc. in replacements.

Related Tools

JSON Formatter & Validator

Developer Tools

Format, validate, and minify JSON data
HTML Entity Encoder/Decoder

Developer Tools

Encode and decode HTML entities
Hash Generator

Developer Tools

Generate CRC-32, MD5, SHA-1, SHA-256, SHA-512, RIPEMD-160 and more hashes