
2 Jun
2008
2 Jun
'08
8:07 p.m.
On Mon, Jun 2, 2008 at 11:50 AM, Reena Dass
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