Boost logo

Boost Users :

From: Edward Diener (eddielee_at_[hidden])
Date: 2003-04-01 10:53:44


There is no reason you can not use Regex++ with data which containes null
bytes. Use the forms of the search algorithms which take iterators which
define the extents of the data on which you want to search. You also should
be able to use the forms of the search algorithms which takes C++
std::strings since null bytes can be embedded in std::strings AFAIK. I do
not believe the Regex++ algorithms do any stopping or special actions if
they encounter null bytes in the search stream, but John Maddock the creator
of the Regex++ implementation would know about that for sure.

brian_hernacki wrote:
> Maybe a newbiew question, but is there any way to use the regex++
> libary to search chunks of binary data? (or more accurately to search
> a buffer of data of known length for a given pattern which may itself
> contain null bytes)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net