Help for this page
anchor to start try $re ... $re matched '0011' anchor to end match complete: matched '0011' from start
$re = qr{0(??{$re})?};
$re = qr{(??{$re})?0};