Regex Escape/Unescape Tool
Escape special regex characters for safe use in patterns, or unescape them back to normal.
Text to Escape
Escaped Text to Unescape
About Regex Escaping
Regex special characters (like . * + ? ^ $ | \ ( ) [ ] ) need to be escaped with a backslash when you want to match them literally. This tool automatically escapes or unescapes these characters for you.
Example: "test.txt" becomes "test\.txt" when escaped, making the dot match a literal period instead of any character.