in reply to Re^3: Slow find/replace hex in Perl win32
in thread Slow find/replace hex in Perl win32
perl -e"BEGIN{ $/ = \65536 }" -pe "s/\x00\x42\x00\x11/\x00\x42\x00\xf0 +/sgx"
And what if the four byte pattern crosses the 65536 byte boundary? Oops. :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Slow find/replace hex in Perl win32
by BrowserUk (Patriarch) on Sep 29, 2010 at 22:02 UTC |