Regex Tester
Test a regular expression against sample text and see every match.
2 matches:
Processing happens locally in your browser. Nothing you enter is uploaded.
How It Works
Enter a pattern, optional flags (like g or i), and test text. Matches update instantly, and invalid patterns show a clear error.
Example
The pattern \d+ against "Order #12, order #345" matches "12" and "345".
Frequently Asked Questions
- What do the flags do?
- "g" finds all matches instead of stopping at the first one; "i" makes the match case-insensitive; "m" changes how ^ and $ behave across multiple lines.
- What happens if my pattern is invalid?
- The tool shows a clear error message describing the problem instead of crashing or silently failing.
Related Tools
JSON Formatter
Format, validate, and beautify JSON with proper indentation.
URL Encoder / Decoder
Encode text for safe use in a URL, or decode a URL-encoded string.
Base64 Encoder / Decoder
Encode text to Base64, or decode Base64 back to plain text.
Color Converter
Convert between HEX and RGB color formats.
Hash Generator
Generate a SHA-1, SHA-256, or SHA-512 hash of any text.
HTML Encoder / Decoder
Encode text to HTML entities, or decode HTML entities back to plain text.