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

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -