📅  最后修改于: 2022-03-11 14:57:55.102000             🧑  作者: Mango
function uuidValidation (item)
{
let regexUuid = /[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}/;
return item.match(regexUuid)?true:false
}
let uuid = "88a34ad8-0e16-4057-9d5e-314765d44c8d";
console.log(uuidValidation(uuid));