Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Regex match for Any number of words?

by Anonymous Monk
on Jan 16, 2022 at 12:38 UTC ( [id://11140504]=note: print w/replies, xml ) Need Help??


in reply to Regex match for Any number of words?

Replies are listed 'Best First'.
Re^2: Regex match for Any number of words?
by sbrothy (Acolyte) on Jan 17, 2022 at 11:13 UTC
    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! :)

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11140504]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-03-28 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found