Mine
public php v1 · immutable $regex = '/<!--STARTARTICLE-->(.*)<!--ENDARTICLE-->/'; $ret = preg_match($regex, $string, $matches); print_r($matches); $regex = '/<!--STARTARTICLE-->(.*)<!--ENDARTICLE-->/'; $ret = preg_match($regex, $string, $matches); print_r($matches);