>  $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");

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