Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Split a string based on change of character (also)

by tye (Sage)
on Jul 28, 2007 at 07:41 UTC ( #629262=note: print w/replies, xml ) Need Help??


in reply to Split a string based on change of character

my $str= "AAABBCCCC"; my @x; push @x, $1 while $str =~ /((.)\2*)/g;

- tye        

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://629262]
help
Chatterbox?
[Corion]: ambrus: Yes, which kinda makes sense because Prima also has Postscript output or something, I think

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2016-12-09 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (150 votes). Check out past polls.