Question about Boost::Regex library
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi. I want to name subgroups in regex: For example, if I would use .Net it would be like this:
using namespace System::Text::RegularExpressions;
...
Regex^ re="(?<letters>[a-zA-Z]*)(?<numbers>[0-9]*)";//subgroup#1 called "letters",
//subgroup#2 called "numbers"MatchCollection^ matches = re->Matches(szInput);//szInput contains text that needs to be parsed.
for each (Match^ match in matches){
MessageBox::Show(Match->Groups["letters"]->Value);
MessageBox::Show(Match->Groups["numbers"]->Value)
}Can I do the same thing in MFC using Boost::Regex libraries?