in reply to Simple regex question

Wow, I never realized there could be so many different ways of doing this (but I should have guessed, of course!).

Thanks to everyone for the replies - they're most appreciated.

Replies are listed 'Best First'.
Re: Re: Simple regex question
by Anarion (Hermit) on Oct 24, 2003 at 08:26 UTC
    Well here's another way, when you want only a part of a list, grep comes to my mind:
    grep { ++$i % 2 } /((.)\2*)/g

    $anarion=\$anarion;

    s==q^QBY_^=,$_^=$[x7,print