getFirstMatch (regexp, ua) {
    const match = ua.match(regexp)
    return (match && match.length > 0 && match[1]) || ''
  }
Get first matched item for a string
@param {RegExp} regexp
@param {String} ua
@return {Array|{index: number, input: string}|*|boolean|string}