C/C++ regex to capture a group repeatably? -
if simple (h\w+ ?)+
on string hey hello hi
i'd capture 3 instances matches. know how in c# don't know how in library compatible c/c++.
what library supports , how do it? included c# code example
foreach (var s in regex.match("hey hello hi", @"(h\w+ ?)+").groups[1].captures) { console.writeline(s); }
result:
hey hello hi
Comments
Post a Comment