in reply to Re: Re: Regex failure interpretation
in thread Regex failure interpretation

$_ =~ m/^([01])[01]*$/ and print "$_:'$1'\n" for qw[ 0 1 00 11 10 01 0 +12];

cheers

tachyon

Replies are listed 'Best First'.
Re: Re: Re: Re: Regex failure interpretation
by BrowserUk (Patriarch) on Mar 20, 2004 at 00:52 UTC

    I knew that:)


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail