<?php $re = '/(?:\?|\G(?!^))\K\.[a-zA-Z]+/'; $str = 'othertext ?.abc.de.fgh.i moretext'; preg_match_all($re, $str, $matches); var_dump($matches[0]);
You have javascript disabled. You will not be able to edit any code.