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

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

by Anonymous Monk
on Sep 11, 2007 at 00:54 UTC ( #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
Node Status?
node history
Node Type: note [id://638193]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2016-05-01 16:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found