in reply to RegEx Confusion!

If "flag" is the same length (8 bits), then this should work
my ( $flag, $bytes, $message ) = $frame =~ /^([01]{8})([01]{16})([01]*)\1$/;

-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important

Replies are listed 'Best First'.
Re: Re: RegEx Confusion!
by TrinityInfinity (Scribe) on Nov 02, 2001 at 20:54 UTC
    Your example works perfectly. Thanks so much!

    I've already been breaking it down to see how it works, I was thinking in the right direction, but lacked a good example. Thanks again!