Fixes: #1907 Using preg_match in composite