Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一个正则表达式来将反斜杠替换为双反斜杠,除非涉及 '\a' '\b' '\c' ... '\n' ... '\t' .... '\uXXXX' ' \xHH' '\z' 序列。你能帮忙吗?
关于什么:
/\\[^a-z]?/
如果你想要一个精确的列表:
/\\[^abcntuz]?/