Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^5: Split a string based on change of character

by eyepopslikeamosquito (Chancellor)
on Jul 29, 2007 at 02:43 UTC ( #629365=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @words = grep $i^=1, split /(?<=(.))(?!\1)/, $string;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2016-02-10 22:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (354 votes), past polls