Boost logo

Boost-Build :

Subject: Re: [Boost-build] boost::regex_search url/uri match help
From: John Maddock (john_at_[hidden])
Date: 2009-03-31 04:42:11


> I have the following regular expression for matching a URI/URL(works
> fine with PCRE, note I have escaped ++ to work with boost::regex but
> otherwise unchanged):

What regex did you use with pcre? They should behave exactly the same, did
you mean to use

"[something]+\\+"

ie "something" is repeated and then followed by a literal "+"? Rather than:

"[something]\\+\\+"

which matches a literal "something++" which doesn't I think occur in a URL?

John.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk