$str =~ /(0+)(1+)/; $is0n1n = length($1)<=>length($2); # 0 if match [download]
Enjoy, Mickey
In reply to Re: A (non) reg-ex question by mickeyn in thread A (non) reg-ex question by Ido