Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

regex for uuid v4

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));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #uuid
ADD COMMENT
Topic
Name
8+6 =