Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. const uuidv4Regex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;
  2.  
  3. const testString = "testing";
  4. const isUUIDV4 = testString.match(uuidv4Regex); //will return false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement