simple example in Notepad++ using RegEx replace
search for: anything
replace with (wanted): \\test
guess for regex replace string: \\test
results in: tab
est , so the \\t is interpreted as a tab
guess for regex replace string: \\\\test
results in: \\ tab
est , so the first \\ is interpreted as a \\, the \\t is interpreted as a tab
guess for regex replace string: \\ test ( space
in between \\ and test)
results in: \\ test ( space
in between \\ and test)
How can I do this to get \\test as the result? Are there any group or end of command characters for the replace string? Or an empty character that I can add after the \\?
Thanks, Axel
How about replacing with \\\\test
? Usually \\
must be escaped with \\
.
尝试3个反斜杠,这种事情通常适用于其他工具/语言。
\\\\test
should do the trick. Try it and let me know.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.