|
Boost Users : |
From: Cory Nelson (phrosty_at_[hidden])
Date: 2008-06-02 16:07:42
On Mon, Jun 2, 2008 at 11:50 AM, Reena Dass <Reena.Dass_at_[hidden]> wrote:
> I'm trying to write a parser for URIs. I tried the grammar straight from RFC
> 2396
>
> boost::regex
> parser("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?",
>
> boost::regex::perl|boost::regex::icase);
>
>
>
> This does not work since it I get an exception due to invalid regular
> expression.
>
> What am I doing wrong here?
>
The \? should be \\?, that could be why.
-- Cory Nelson
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