
2 Feb
2008
2 Feb
'08
10:37 a.m.
Marshall Clow wrote:
I am in need of a library to parse/encode/decode URLs. A quick look through the boost tree doesn't yield any obvious candidates.
Before I dive into writing my own, does anyone have any pointers/recommendations?
URLs are too complex for normal regular expressions to take apart in one step. So you basically have a choice between Spirit or Xpressive to build a complex parser, or you go over the thing in multiple passes using Regex, String_Algo and perhaps even Tokenizer. Boost does not have an URL parsing library in its own right. Although, perhaps the networking protocol sandbox project has something. Sebastian Redl