Test JavaScript regular expressions with live match highlights and replacements.
Build and test JavaScript regular expressions against sample text with live match highlighting and replacement previews. Experiment with common regex patterns, inspect match positions, switch supported flags and use capture groups in replacements. Export the transformed text as a TXT file when your pattern is ready.
It uses JavaScript regular-expression syntax supported by the browser's RegExp implementation.
The available flags are g for global matching, i for case-insensitive matching, m for multiline mode and s for dot-all mode.
Yes. Replacement strings support references such as $1 and $2 for captured groups, following JavaScript string replacement behavior.
The pattern or flags may contain invalid JavaScript regex syntax. Check brackets, parentheses, escape characters and flag combinations. The tool displays an error when the expression cannot be compiled.
Related Tools
Handpicked next steps for this task.