private function tag_get_name(string $text){
    if (
      ($this->mode === 'js') ||
      ($this->mode === 'vue')
    ){
      //preg_match('/\w+/', $text, $name, PREG_OFFSET_CAPTURE);
      preg_match('/[[:graph:]]+/', $text, $name, PREG_OFFSET_CAPTURE);
    }
    else if ( $this->mode === 'php' ){
      preg_match('/\$[a-z]+/', $text, $name, PREG_OFFSET_CAPTURE);
    }
    return $name;
  }
private function tag_get_name(string $text){
    if (
      ($this->mode === 'js') ||
      ($this->mode === 'vue')
    ){
      //preg_match('/\w+/', $text, $name, PREG_OFFSET_CAPTURE);
      preg_match('/[[:graph:]]+/', $text, $name, PREG_OFFSET_CAPTURE);
    }
    else if ( $this->mode === 'php' ){
      preg_match('/\$[a-z]+/', $text, $name, PREG_OFFSET_CAPTURE);
    }
    return $name;
  }
private function tag_get_name ( string $ text ) { if ( ( $ this -> mode === 'js' ) || ( $ this -> mode === 'vue' ) ) { //preg_match('/\w+/', $text, $name, PREG_OFFSET_CAPTURE); preg_match ( '/[[:graph:]]+/' , $ text , $ name , PREG_OFFSET_CAPTURE ) ; } else if ( $ this -> mode === 'php' ) { preg_match ( '/\$[a-z]+/' , $ text , $ name , PREG_OFFSET_CAPTURE ) ; } return $ name ; }
Gets tag 'name'

@param string $text The tag text
@return array
Gets tag name