12 Mar
2007
12 Mar
'07
10:02 a.m.
Jonathon Douglas wrote:
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 ?
C++ gobbles up \'s in starings, so it looks you want "\\w+" so that the regex engine gets to see \w+ John.