Add the requested inputs
Use the labelled fields in the workspace above. If example values are provided, try them first or replace them with your own.
Developer tools · Free online tool
Test a JavaScript regular expression, flags and replacement against sample text.
Runs locally in your browser
Uses the JavaScript regular expression engine. Syntax may differ from PCRE, Python or other regex flavours.
Use it with confidence
Use the labelled fields in the workspace above. If example values are provided, try them first or replace them with your own.
Use the main action when needed. The browser RegExp engine applies the entered pattern and flags while output is rendered as safe text.
Use named or numbered groups, inspect match indexes and preview a replacement before changing code.
Pathological expressions can be slow and JavaScript regex syntax differs from PCRE, Python and other engines.
Helpful answers
Yes. Guests receive 3 runs per rolling 24 hours, verified free accounts receive 10, and Premium subscribers receive unlimited normal use.
No. This tool runs in your browser and UtilHub does not receive or store the values you enter. Your browser or device may still retain normal local history or form data.
The browser RegExp engine applies the entered pattern and flags while output is rendered as safe text.
Pathological expressions can be slow and JavaScript regex syntax differs from PCRE, Python and other engines.