Regex 转义
正则特殊字符转义与反转义
🔒 100% client-side — your data never leaves this pageInput
Output
Converted result will appear here
🔒 100% client-side
About this tool
用于处理正则表达式中的特殊字符转义问题,支持转义与反转义双向操作。适合动态拼接正则、配置文件编辑、脚本开发和故障排查场景,减少手工加反斜杠导致的匹配错误。
Frequently Asked Questions
When should I escape regex text?
Escape input when you want to match literal characters that might otherwise be interpreted as regex operators.
What does unescape mode do?
It removes regex escaping from special characters to make patterns easier to read or edit.
Can this validate full regex syntax?
No. It focuses on escaping conversion and does not execute regex parsing tests.