Unescape Regex
Remove backslash escapes from a regular expression so forms like a\.b become readable plain text. Useful for inspecting escaped search terms or debugging a matching rule.
How to use
- Backslash escapes are removed while ordinary text and line breaks stay unchanged.
- The result no longer works as a regex pattern and is best used for reading or further editing.
FAQ
Can I still use the result as a regex?
No. Removing the backslashes gives the characters their special meaning again, so using the text as a pattern may match the wrong things. Escape it again, or keep the original version for matching.
Why is the result not identical to the source?
If the source already contained backslashes, the unescaping rule may treat them as escape characters. For paths or code with backslashes, keep a copy of the original and compare before using the result, so data is not changed unexpectedly.
Further reading