Making Notepad++'s $ match the end of the file instead of the end of the line

I was wondering if there was a way of matching the end of a file in Notepad++ other than putting myself there a special combination of characters. By default, $ seems to match the end of the line, and not the end of a file.

Thanks


You can try the following regex to match the end of your file:

\z

According to the regex documentation referenced by the Notepad++ Wiki \z matches at the end of a buffer only. A buffer in this context is the whole of the input text.