v1.0.5
•85 Ready-to-use patternsThe modern regex sandbox
An interactive playground to debug expressions, synthesize regex from examples, analyze ReDoS vulnerabilities, and generate production-ready code. 100% client-side.
Live Highlighting
Matches highlighted in real-time with zero latency as you type.
Regex Creator
Synthesize complete patterns from positive and negative examples.
ReDoS Scanner
Analyze patterns for catastrophic backtracking vulnerabilities.
Auto-Gen Test Cases
Fuzz your regex with 10 generated valid and invalid strings.
Code Generator
Instant code snippets for TS, Zod, Go, PHP, Vitest, and Pest.
100% Private
All client-side. Patterns and test inputs never leave your browser.
Take patterns to production natively
One single source of truth. Distributed to JS/TS, Python, Go, PHP, and Rust.
validate.ts
Install Command
$ npm i @regexto/validatorsBasic Usage
import { validate, test } from '@regexto/validators';
// Full validation
const result = validate('email', 'hello@regex.to');
console.log(result.valid); // true
// Fast boolean check
const isMatch = test('url', 'https://regex.to'); // true