On Mon, 24 Sep 2001, Jerrad Pierce wrote:

> >  $text = "111222333";
> >  @mem = $text =~ /(1)+(2)+(3)+/;
> >  #@mem now eqals ("1", "2", "3"),
> >  #not (["1","1","1"],["2","2","2"],["3","3","3"])
> >  #which is what i wish and think it should be
> Sorry, but it's doing exactly what you;re telling it.
> Try:
> 
> /(1+)(2+)(3+)/;
> 
> it'll get closer, namely:
> 
> ("111", "222", "333");

yeah i know putting it inside will do that but i can't later split up my
matches for efficientcy i don't think. i'd like to try and find another
way around it.
 
> you could then go and split up each element...
> 
> -- 
> H4sICNoBwDoAA3NpZwA9jbsNwDAIRHumuC4NklvXTOD0KSJEnwU8fHz4Q8M9i3sGzkS7BBrm
> OkCTwsycb4S3DloZuMIYeXpLFqw5LaMhXC2ymhreVXNWMw9YGuAYdfmAbwomoPSyFJuFn2x8
> Opr8bBBidccAAAA=
> --
> MOTD on Boomtime, the 48th of Bureaucracy, in the YOLD 3167:
> Oh boy! Rocket science at its best --JP
> 

Reply via email to