Regex Tester
Iterate on regular expressions with immediate feedback so you can refine patterns quickly. The tool highlights matches and shows capture groups to make debugging easier.
Regex Tester
Write, test, and debug regular expressions in real time. Live match highlighting, capture groups, replace mode, and a built-in cheat sheet.
Pattern
Test String
3 matchesHighlighted Matches
Live Match Highlighting
Matches are highlighted in real time as you type the pattern, with colour-coded capture groups and a full match table.
Replace Mode
Switch to Replace mode to preview substitutions with back-reference support ($1, $2, $<n>) before committing.
Zero Dependencies
Powered by the browser's native RegExp engine: no libraries, no server round-trips, no data ever leaves your device.
How to Test a Regular Expression
Enter Your Pattern
Type or paste a regex pattern into the pattern field. Flags can be toggled individually with the flag buttons.
Paste Your Test String
Enter the text you want to match against. Matches are highlighted immediately with colour-coded spans.
Inspect Matches & Groups
The match table shows every match, its position, and any captured groups. Switch to Replace to preview substitutions.
Copy Results
Copy matched values, the replaced string, or the pattern itself: all with one click.
Who Uses a Regex Tester?
Developers
Build and debug patterns for input validation, URL routing, log parsing, and string extraction without trial and error in production code.
Data Engineers
Extract structured fields from raw log files, CSV columns, and semi-structured text using precise capture groups.
QA Engineers
Validate that form inputs: emails, phone numbers, dates: match the expected format before writing test assertions.
Technical Writers
Use replace mode to run find-and-replace operations on documentation and code examples before publishing.
Security Researchers
Write patterns to detect sensitive strings, PII, API keys, and known attack signatures in log data.
Students & Learners
Experiment with regex syntax interactively: the cheat sheet and live feedback make learning patterns intuitive.
Endless Forge vs Other Regex Tools
Fast, private, and fully featured - runs entirely in your browser.
Everything you need to write better regex
More Utility & Developer Tools
URL Encoder / Decoder
Encode and decode URLs and query strings with component, full URL, and form encoding modes, plus a full query parameter parser.
Base64 Encoder / Decoder
Encode text or files to Base64 and decode Base64 strings back to plain text, with URL-safe mode and image preview support.
JWT Decoder
Decode and inspect JSON Web Tokens — view header, payload, expiry status, algorithm, and all IANA-registered claims with explanations.
Code Formatter
Auto-format messy code with consistent indentation and style rules.
JSON Formatter
Beautify and pretty-print raw JSON with configurable indentation, syntax highlighting, and instant error detection.
JSON Validator
Validate any JSON with precise error locations, duplicate key detection, non-standard pattern warnings, and full structure analysis.
Code Compressor
Minify and compress code to reduce file size for production deployment.
UUID Generator
Generate UUIDs in v4, v7, v1, ULID, Nil, and Max formats with bulk generation, multiple output formats, and one-click download.
Frequently Asked Questions
6 questions answered