
So the first problem I have is defining a correct expression. The pattern has the format "sometext>NUMBERS<sometext" newline. The NUMBERS may be one or two digits combined and the pattern is repeated 10 times. I have searched the archives and tried to build something based on the examples I have read, but cannot seem to find a working solution. Can anyone help please in defining an expression?
What's wrong with just: "sometext\\>(\\d{1,2})\\<sometext" then use a regex_iterator to iterate over all occurances, extracting $1 from each match. Even better use regex_token_iterator to spit out each number directly - take a look at the last example on the bottom of this page: http://www.boost.org/doc/libs/1_52_0/libs/regex/doc/html/boost_regex/ref/reg... HTH, John.