http://qs321.pair.com?node_id=11140638


in reply to Re^2: Regex match for Any number of words?
in thread Regex match for Any number of words?

This is ofcourse C++ and not perl. Still, for completeness sake:

I ended up using boost::regex_token_iterator.

So in all it's glorious simplicity it ended up being just:

boost::regex re("\\s+");

Regards.