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

Re^2: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)

by Anonymous Monk
on Sep 11, 2007 at 00:54 UTC ( [id://638193]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    x = []
    "ZBBBCZZ".scan(/((.)\2*)/){ x << [$~[0]]; x.flatten!}
    
  2. or download this
    # => [["Z"], ["BBB"], ["C"], ["ZZ"]]
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-19 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found