http://www.perlmonks.org?node_id=11140499

sbrothy has asked for the wisdom of the Perl Monks concerning the following question:

I'm using C++ Boost but have it set to Perl syntax. How can I match (and return) any number of words. As in an arbitrary number of them, IE. :
" THIS is a variable number of words, spaces and punctuation. "
I'd like to end up with:
THIS is a variable number of words spaces and punctuation
I've been for ighting with this. You can think about This Till I get home and find some of my sorry attepmts.... :) /Regards, Søren.