Re: [racket-users] unicode (or just plain byte) regular expression positions?

2021-01-18 Thread Jon Zeppieri
On Mon, Jan 18, 2021 at 10:53 PM Tim Meehan wrote: > > Say that I have a strange character group that I want to find in a binary > file. > I wanted to use something like this: > > (define needle (list->string (map integer->char (list #xab #xcd #xef > (define needle-offset >

[racket-users] unicode (or just plain byte) regular expression positions?

2021-01-18 Thread Tim Meehan
Say that I have a strange character group that I want to find in a binary file. I wanted to use something like this: (define needle (list->string (map integer->char (list #xab #xcd #xef (define needle-offset (call-with-input-file "big_binary_blob.bin" #:mode 'binary (λ (p)