Test regular expressions with live highlighting, groups, replace and split, a pattern explainer and a library of common patterns — 100% local.
Quick Answer
Regex Tester lets you: Test regular expressions with live highlighting, groups, replace and split, a pattern explainer and a library of common patterns — 100% local. To start, type it between the slashes, or load one from Common patterns.
Type it between the slashes, or load one from Common patterns.
Toggle g, i, m, s, u, y and d — the Global flag really controls whether every match is found.
Matches are highlighted in the editor as you type; capture groups are shown in a second colour.
Use Matches, Replace, Split, Explain and Cheat sheet to inspect groups, preview a replacement, split text or read what each part of the pattern does.
Matching…