in reply to having fun with RE - was: Re: One Zero variants_without_repetitionin thread One Zero variants_without_repetition
$_ = "00001111"; print "$_\n" while (s/(1*)0(0*)1/$2${1}10/); [download]