Regex Tester

Test and debug regular expressions instantly. Enter a regex pattern and sample text to see matches, groups, and results in real-time. Perfect for learning regex and validating patterns.

Frequently Asked Questions

What is a regular expression (regex)?

A regular expression is a sequence of characters that defines a search pattern. Regex is used for pattern matching in strings, such as validating email addresses, finding phone numbers, or extracting data from text.

What regex flags are supported?

This tool supports common JavaScript regex flags: g (global - find all matches), i (case-insensitive), m (multiline - ^ and $ match line breaks), s (dotall - . matches newlines), and u (unicode support). You can combine multiple flags.

How do I use this tool?

Enter your regex pattern in the pattern field and sample text in the text field. The tool will highlight matches in real-time and show detailed information about each match, including captured groups. Toggle flags to see how they affect the results.

What are captured groups?

Captured groups are parts of a regex pattern enclosed in parentheses. They allow you to extract specific portions of matched text. For example, in the pattern (\d+)-(\d+), the two groups would capture numbers before and after the hyphen.

Can I test complex regex patterns?

Yes! This tool supports all JavaScript regex features, including lookaheads, lookbehinds, quantifiers, character classes, and more. However, very complex patterns with many matches may be limited to 1000 matches to prevent performance issues.

Is my regex pattern validated?

Yes, the tool validates your regex pattern in real-time. If the pattern is invalid, you'll see an error message explaining what's wrong. Valid patterns will show matches and highlights in the sample text.

Base64 Encoder / Decoder

Instantly encode text to Base64 or decode Base64 strings back to plain text. Perfect for encoding data, working with APIs, or debugging.

JWT Decoder

Decode and inspect JSON Web Tokens (JWT) to view the header, payload, and signature. Perfect for debugging authentication tokens and understanding token structure.

JSON / YAML Converter

Convert between JSON and YAML formats instantly. Perfect for configuration files, API documentation, and data transformation. Supports bidirectional conversion with syntax validation.

Password Generator

Generate secure, random passwords with customizable length and character types. Perfect for creating strong passwords for accounts, API keys, and security tokens.

URL Encoder / Decoder

Encode text to URL-encoded format or decode URL-encoded strings instantly. Perfect for encoding URL parameters, query strings, and handling special characters in URLs.

QR Code Generator

Generate QR codes from text, URLs, or any data instantly. Perfect for sharing links, contact information, WiFi passwords, and more. Download as PNG image.

UUID Generator

Generate UUIDs (Universally Unique Identifiers) instantly. Perfect for database IDs, unique identifiers, API keys, and development work.

Text Case Converter

Convert text between different case formats instantly. Supports lowercase, uppercase, title case, sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE.

Epoch Timestamp Converter

Convert between Unix epoch timestamps and human-readable dates instantly. Perfect for debugging, API development, and working with timestamps in various formats.

Hash Generator

Generate cryptographic hashes (MD5, SHA-256, SHA-512) from text instantly. Perfect for data integrity checks, password hashing references, and cryptographic operations.

Markdown Preview

Preview markdown formatting in real-time. Write markdown text and see the rendered HTML output instantly. Perfect for writing README files, documentation, and formatted text.

Share Your Feedback

Help us improve this tool by sharing your thoughts and rating your experience.

🧢