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

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

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -

c# - MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(3243,9): error MSB4094 -