How can I use the Perl regex search to find files ending in:
-------\r\n<eof>
In hex this is:
2D 2D 2D 2D 0D 0A (the end of the file)
I'm in UltraEdit, which says it uses Boost Perl regex syntax.
I've figured enough out to use:
----\x0d\x0a
which does find the lines I want, but only amongst hundreds of others that aren't at the end of the file:
whatever
------------ <- matches this also, which I don't want!
whatever
------------ <- matches this also, which I don't want!
whatever
UltraEdit's regex-engine works in a line-based way. This means among other things that it does not discriminate between end of line and end-of-file.
It doesn't know the
\z
or\Z
end-of-string markers, either. Also, a negative lookahead assertion like-----\r\n(?!.)
doesn't work in UE.So UE's regex engine lets you down here. What you could do is to use a macro:
and have UE apply that to all your files.