Navigation

Regex Tester

Test JavaScript regular expressions with real-time matching, capture groups, and highlighted preview. 100% client-side — nothing leaves your browser.

Pattern
/ /
Quick patterns:
Test string

Paste or type the text to match against. Results update in real-time.

Matches
Matches will appear here in real-time...
Related tools

Frequently Asked Questions

A regular expression (regex) is a pattern that describes a set of strings. It's used in virtually every programming language for text search, validation, extraction, and replacement. For example, \d{3}-\d{4} matches phone numbers like 555-1234.

This tool uses your browser's native JavaScript regex engine (ECMAScript). Most patterns are compatible across languages, but some features like lookbehinds may vary. It supports named capture groups (?<name>...), lookaheads, and all standard flags.

Security analysts frequently use regex for IOC extraction: IP addresses (\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b), email addresses ([\w.-]+@[\w.-]+\.\w+), URLs (https?://[^\s]+), MD5 hashes (\b[a-fA-F0-9]{32}\b), SHA-256 hashes (\b[a-fA-F0-9]{64}\b), and domain names.