http://qs1969.pair.com?node_id=11140527


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

Wow, thank you all. I'd expected you'd wait and see if I did any work of my own before answering but I completely forgot about this until now. These answers were all very helpful. Again, thank you! :)

Replies are listed 'Best First'.
Re^3: Regex match for Any number of words?
by sbrothy (Acolyte) on Jan 20, 2022 at 11:55 UTC

    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.