in reply to Re: Searching binary data
in thread Searching binary data
I think you want ".", rather then "\S" in your regex. Also, I think your matching code will miss cases where there is more then one match per line.
However, the basic idea of packing is exactly what you want. You also probably want to use ord and printf %x to print your results in hex. (or unpack).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Searching binary data
by Juerd (Abbot) on Mar 14, 2002 at 17:58 UTC | |
by theorbtwo (Prior) on Mar 14, 2002 at 18:08 UTC |