Regex Builder
Build a regular expression step by step from text, character types, common patterns and groups, test it live and export it for JavaScript, Python or PHP.
Open toolPaste a regular expression and see every token, group, quantifier and flag explained in plain English, with syntax from other engines flagged.
Breaks a regular expression into a tree you can read: each piece of the pattern next to a sentence saying what it matches — “a digit (0–9), exactly 4 times”, “capture group 1, named year”, “not followed by…”. Character classes list their ranges, quantifiers say whether they are greedy or lazy, alternatives are numbered, and every flag is explained. Paste either a bare pattern or a JavaScript literal like /abc/gi.
The explanation follows JavaScript’s regex rules. Syntax from other engines that JavaScript doesn’t support — Python’s (?P<name>…), atomic groups, possessive quantifiers, \A and \Z, inline modifiers — is flagged with the JavaScript alternative. Common mistakes such as unbalanced parentheses, a quantifier with nothing to repeat or a backwards range are pointed out, and the browser’s own RegExp engine confirms whether the pattern is valid. The pattern is never run against any text. Everything runs in your browser. Your data is never uploaded, logged or stored.
Your code or text
JavaScript regex, /pattern/flags literals
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Paste a pattern or a /pattern/flags literal (or try an example).
Read the piece-by-piece explanation and any issues.
Copy the explanation for a code review or documentation.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Read the piece-by-piece explanation and any issues.
Copy the explanation for a code review or documentation.
Build a regular expression step by step from text, character types, common patterns and groups, test it live and export it for JavaScript, Python or PHP.
Open toolTest JavaScript regular expressions with live match highlighting, capture groups and replace preview.
Open toolSee every character’s code point, script, category and UTF-8 bytes, and spot invisible, bidi and mixed-script look-alike characters.
Open toolEscape text so it matches literally in a regex pattern, a character class or a replacement string, for JavaScript, PCRE, Python, Java, .NET or POSIX.
Open tool