Regex Unescape Online
Paste an escaped regex pattern and get the plain text it matches. Backslashes before special characters are removed, and /regex/flags wrappers are stripped. Nothing leaves your device.
How to use Regex Unescape on KickSolve
Three quick steps, no account needed.
Why choose KickSolve
Built for speed, privacy and accurate results.
About Regex Unescape on KickSolve
What it does and how to get the best results.
What does regex unescape do?
It reverses regex escape. A backslash in front of a special character is removed, so 5\.00 becomes 5.00. \n and \t become a real new line and tab, and \\ becomes one backslash.
What about \d, \w and \s?
Those are regex tokens, not escaped characters. They stand for digits, word characters and spaces, so the tool keeps them and tells you how many it left alone. Removing them would change what the pattern means.
Literals and flags
If you paste a literal such as /foo\.bar/gi, the slashes and flags are stripped and the pattern inside is unescaped. Text that only looks like a path, such as /path/to/, is left as it is.
When it is useful
Use it to recover the text a pattern was built from, to read an escaped value from a config, or to check a pattern made by regex escape.
Regex Unescape examples
Real input and output so you can see exactly what changes.
Escaped price
Input
\(USD\) \$5\.00Output
(USD) $5.00A regex literal with flags
Input
/foo\.bar/giOutput
foo.barRegex tokens are kept
Input
\d+\.\d+Output
\d+.\d+When do you need to unescape a regex?
Common reasons people use this page.
Privacy, limits and browser support
What happens to your data and what to expect.
- How it works: with KickSolve, the conversion runs in your browser with JavaScript. Your text is not sent to a server and is not stored.
- Limits: there is no limit set by us. Very large text, many megabytes, depends on your device memory.
- Browsers: current Chrome, Edge, Firefox and Safari on desktop and mobile.
Read the KickSolve privacy policy for details about the site itself.
Frequently asked questions
Quick answers.
How do I unescape a regular expression?
Paste the pattern in the top box. Backslashes before special characters are removed and the plain text appears below.
Why were some backslashes kept?
Sequences such as \d, \w and \s are regex tokens, not escaped characters. The tool keeps them and shows a note.
Can I paste a /pattern/flags literal?
Yes. The slashes and flags are removed and only the pattern is unescaped.
What happens to \n and \t?
They become a real new line and tab.
What about double backslashes?
A pair of backslashes becomes one. The tool reads left to right, so an escaped backslash is never mixed up with the next character.
Is the result still a valid regex?
Not necessarily. After unescaping, a dot or a bracket is special again. The result is the plain text.
Is my text uploaded anywhere?
No. Everything runs in your browser.
Is it free?
Yes. It is free and needs no signup.
More free tools from KickSolve
Related string and developer tools.