Boost logo

Boost Users :

From: Jonathon Douglas (madhon_at_[hidden])
Date: 2007-03-11 16:42:34


I am trying to convert the following C# code over to using boost::regex

MatchCollection col = new Regex(@"\w+").Matches(@"slx://account/123456");
string table = col[1].Value;
string id = col[2].Value;

Table would equal "account" and id would equal "123456" in this.

Ive tried using regex_match with this but it always finds no matches.

Any sugestions ?

Thanks,

JD



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