In Emacs regex, \n
doesn't match a new line character \n
.
- Am I correct that
$
matches the position between a new line character and the character right before the new line character. e.g. for a stringabc\n
,$
matches the position betweenc
and\n
? - What is the regex that matches
\n
?
(re-search-forward "\n")
works fine for me.abc\r\n
instead ofabc\n
.\n
ton
. my buffer is in Fundamental mode. This happens to any text, so any text with new line or lettern
is a working example\r\n
torn