Free JavaScript regex tester. Set flags, see every match and capture group, read a short explanation of the pattern, and preview a replacement. The match list is exact, which is what an agent needs when a model guesses.
1Enter a patternType the pattern without slashes. Turn on the flags you need.
2Paste a sampleMatches are marked in the sample. Each row lists the index and the groups.
3Preview a replacementLeave the replacement empty to skip it. $1 and $<name> work as they do in JavaScript.