Regex Replace Tester
Preview regex find-and-replace results with capture group references and live highlighting.
Regex Replace Tester
Preview
Result
History tool ini
Data terakhir yang pernah kamu isi di tool ini, tersimpan hanya di device/browser ini.
Save what you type here, in this browser? Your work would go into this browser's local storage, so a refresh or a trip to another tool does not wipe it. You also get a short list of previous entries under the form, each one restorable with a click. Nothing is ever uploaded, and there is no account.
Being straight about the trade-off: anything kept there can be read by anyone who can use this browser profile, and by any script that later runs on this site. A tool page can hold a private key, a password or a signed token. Saving is convenient; it is not private.
About this tool
Test a find-and-replace before running it. Enter a pattern, flags, a replacement string (with $1 group references) and sample text; the preview highlights matches and the result box shows the output.
Questions
- Why do I get no replacements with a non-global flag?
- Without the g flag only the first match is replaced, exactly like String.replace in JavaScript.