Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Extract sequence of UC words?

by massa (Hermit)
on Aug 18, 2008 at 14:27 UTC ( [id://704940]=note: print w/replies, xml ) Need Help??


in reply to Extract sequence of UC words?

Use the /g modifier.
$ perl -Mutf8 -mopen=:locale -e ' my $data = "this is a TEST SENTENCE Foo Bar GRUB jo аз co"; my @uc_strings = $data =~ /\b\p{Lu}+\b/g; print "@uc_strings\n"; ' TEST SENTENCE GRUB аз
[]s, HTH, Massa (κς,πμ,πλ)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-18 19:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found