<?php $str = '001110000100001100001'; preg_match_all('~ (?<=\K1) .... 1 ~x', $str, $matches); print_r($matches[0]);
You have javascript disabled. You will not be able to edit any code.