如何使用Perl的正则表达式搜索找到文件结尾:Perl的正则表达式匹配<foo> EOF
-------\r\n<eof>
16进制表示是:
2D 2D 2D 2D 0D 0A (the end of the file)
我在UltraEdit,其中说:它使用Boost Perl正则表达式语法。
我已经想通了足够使用:
----\x0d\x0a
这确实发现我想要的线路,但只有其中包括数百人是不是在文件的结尾:
whatever
------------ <- matches this also, which I don't want!
whatever
------------ <- matches this also, which I don't want!
whatever