Thread overview | |||||
---|---|---|---|---|---|
|
December 31, 2014 regex on binary data | ||||
---|---|---|---|---|
| ||||
So far attempts to run regex on binary data causes "Invalid UTF-8 sequence". Attempts to pass ubyte also didn't work out. |
December 31, 2014 Re: regex on binary data | ||||
---|---|---|---|---|
| ||||
Posted in reply to Darrell | On Wednesday, 31 December 2014 at 15:36:19 UTC, Darrell wrote:
> So far attempts to run regex on binary data causes
> "Invalid UTF-8 sequence".
>
> Attempts to pass ubyte also didn't work out.
I doubt using anything except (d,w)string is supported or possible.
|
December 31, 2014 Re: regex on binary data | ||||
---|---|---|---|---|
| ||||
Posted in reply to Darrell Attachments: | On Wed, 31 Dec 2014 15:36:16 +0000 Darrell via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote: > So far attempts to run regex on binary data causes > "Invalid UTF-8 sequence". > > Attempts to pass ubyte also didn't work out. current regex engine assumes that you are using UTF-8 encoded text. i really want regex engine to support user-supplied input ranges instead, so decoding can be done by range (and regex engine can work on anything, not only on strings), but i'm not ready for that challenge yet. maybe i'll try to do something with it in 2015. ;-) |
Copyright © 1999-2021 by the D Language Foundation