similarly this could be captured in a preg_match

    if (preg_match('/^\* @(it[s ].*)/', $docLine, $matches ) {
        $specAnnotation = $matches[1];
        break;
    }

or something similar