Skip to content
Prev 161412 / 398500 Next

Parsing regular expressions differently - feature request

Wacek Kusnierczyk wrote:
here's another example of what could be considered r grep's idiosyncrasy:

grep("\\n", "\n", perl=TRUE)
# matches

grep("\\n", "\\n", perl=TRUE)
# matches

with everything else equal, "\\n" should match *either* newline *or*
backslash-n, no?

vQ