$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Ben Hutchings (ben.hutchings_at_[hidden])
Date: 2003-10-14 08:12:28
John Maddock <john_at_[hidden]> wrote:
> > I see that Regex++ always treats ^ and $ as start and end of line
> > rather than start and end of buffer. Perl does this only if the /m
> > switch is used. Is there a simple way to switch between these two
> > interpretations when compiling a regex?
>
> No but you can use \A and \z for that purpose.
I know that, but I want to be able to interpret user-supplied regexes
either way. Maybe I can pre-process them to substitute ^ and $, but
that seems awkward.