All tools / Text

Safe Regex Tester and Text Replace

Processing locally

Test patterns and replacements without freezing the site.

JavaScript regular expression syntax (not PCRE).

JavaScript replacement: $1, $&, $$, $`, $'.

Process your input to preview the results here.

How to use this tool

How it works

Processing stays in this browser tab. Source files are not uploaded. Export is a new copy; originals are not overwritten.

Related: Text and Code Difference ViewerText Cleanup and Deduplication