Text Diff Checker
Compare two texts and see added and removed lines.
Write a pattern, paste sample text and see every match highlighted instantly with its capture groups.
Runs in your browser. Your input is never uploaded.
Enter a pattern (without slashes) and toggle flags.
Paste or type the test text.
Review highlighted matches, the match count and the capture group table.
Input
[\w.+-]+@[\w-]+\.[\w.]+Compare two texts and see added and removed lines.
Convert text to camelCase, snake_case, kebab-case and more.
Count words, characters, sentences and reading time.
JavaScript (ECMAScript). Lookbehind and named groups work in modern browsers; features from PCRE or Python such as possessive quantifiers do not.
Catastrophic backtracking is possible with nested quantifiers like (a+)+. Matches are capped and you should avoid such patterns in production.
Without g only the first match is reported. With g all matches are found.
Learn regular expressions from scratch: character classes, quantifiers, anchors, groups, lookaheads, flags and common patterns, with JavaScript examples.