simple example in Notepad++ using RegEx replace
search for: anything replace with (wanted): \testguess for regex replace string: \test
results in:tab
est, so the \t is interpreted as atab
guess for regex replace string: \\test
results in: \tab
est, so the first \ is interpreted as a \, the \t is interpreted as atab
guess for regex replace string: \ test (
results in: \ test (space
in between \ and test)space
in between \ and test)
How can I do this to get \test as the result? Are the开发者_开发知识库re any group or end of command characters for the replace string? Or an empty character that I can add after the \?
Thanks, Axel
This seems to be an open issue with notepad++.
How about replacing with \\test
? Usually \
must be escaped with \
.
Try 3 backslashes, this kind of thing often works in other tools/languages.
\\test
should do the trick. Try it and let me know.
精彩评论