While using the geany editor I have been struggling on how to append a LF at the end of a search pattern. Finding the LF was not difficult just use \R at the position where a LF has been expected.

\R stands in this case either for LF or CR or LF and CR it matches any unicode character that stands for a newline Geany documentation

However I tried to append the same character for LF as replace hoping it would make a new line. I have been thought that it does not work this way.

One needs to be careful if dealing with regular expression, the correct syntax for an new line is

\n  newline
\r  carriage return
\t  tab

Regular expression syntax