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. – Dan♦ Feb 25 '15 at 0:37abc\r\n
instead ofabc\n
. – Jordon Biondo Feb 25 '15 at 15:53\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 – Tim Feb 27 '15 at 2:17\r\n
torn
– Tim Feb 27 '15 at 2:18