Perl 正規表現検索を使用して、末尾が次のファイルを見つけるにはどうすればよいですか。
-------\r\n<eof>
16 進数では、次のとおりです。
2D 2D 2D 2D 0D 0A (the end of the file)
私は、Boost Perl regex 構文を使用していると言う UltraEdit を使用しています。
私は使用するのに十分なことを理解しました:
----\x0d\x0a
私が欲しい行を見つけますが、ファイルの最後にない他の何百もの行の中だけです:
whatever
------------ <- matches this also, which I don't want!
whatever
------------ <- matches this also, which I don't want!
whatever