const auth = 'Bearer AUTHORIZATION_TOKEN' const { groups: { token } } = /Bearer (? [^ $]*)/.exec(auth) console.log(token) // Prints "AUTHORIZATION_TOKEN"
確定! 回上一頁