Back
Regex replace
Text tools
Loading
Loading tool
Preparing the tool. The remaining time is not yet known.
All processing for this tool happens in your browser. Your input is not sent to a server.
About this tool
Replace JavaScript regex matches in an isolated worker with capture-group placeholders.
Common uses
- Replace JavaScript regex matches in an isolated worker with capture-group placeholders.
- Enter source text, a pattern without delimiters and replacement text; choose g, i, m and s options as needed.
How to use it
- 1.Enter source text, a pattern without delimiters and replacement text; choose g, i, m and s options as needed.
- 2.Inspect the replacement count and copy the complete output; an empty replacement deletes matches.
Limits and notes
- Unicode mode is always enabled. Execution times out at 900 ms, with 200,000 input units, 2,000 pattern units, 20,000 replacement units, 5,000 matches and 500,000 output units maximum; over-limit replacement is rejected rather than partly applied.
Frequently asked questions
What does this tool do?
Replace JavaScript regex matches in an isolated worker with capture-group placeholders.
What should I check before using the result?
Unicode mode is always enabled. Execution times out at 900 ms, with 200,000 input units, 2,000 pattern units, 20,000 replacement units, 5,000 matches and 500,000 output units maximum; over-limit replacement is rejected rather than partly applied.