Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Regex match for Any number of words?

by tybalt89 (Prior)
on Jan 16, 2022 at 15:35 UTC ( #11140507=note: print w/replies, xml ) Need Help??


in reply to Regex match for Any number of words?

Why be negative?

perl -le 'print for " THIS is a variable number of words, spaces and + punctuation. " =~ /\w+/g' THIS is a variable number of words spaces and punctuation

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2022-05-21 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?