public function extractMentions($text)
    {
        $matches = array();

        if (preg_match_all(ComPeopleDomainEntityPerson::PATTERN_MENTION, $text, $matches)) {
            return array_unique($matches[1]);
        } else {
            return array();
        }
    }
public function extractMentions($text)
    {
        $matches = array();

        if (preg_match_all(ComPeopleDomainEntityPerson::PATTERN_MENTION, $text, $matches)) {
            return array_unique($matches[1]);
        } else {
            return array();
        }
    }
public function extractMentions ( $ text ) { $ matches = array ( ) ; if ( preg_match_all ( ComPeopleDomainEntityPerson :: PATTERN_MENTION , $ text , $ matches ) ) { return array_unique ( $ matches [ 1 ] ) ; } else { return array ( ) ; } }
extracts a list of mention usernames from a given text.

@return array
extracts a list of mention usernames from a given text .