<?php preg_match('~a(?=(b|b\K))b~', 'abc', $matches); print_r($matches); preg_match('~a(?=(bx|b\K))b~', 'abc', $matches); print_r($matches);
You have javascript disabled. You will not be able to edit any code.