UUID
What this is
The third group starts with version 1–5 and the fourth with variant 8, 9, a, or b. Nil UUID 0000… is version 0 and will not match this strict pattern.
/\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\b/g550e8400-e29b-41d4-a716-446655440000 not-a-uuid
FAQ
- UUIDv7?
- Version 7 is now common. Change [1-5] to [1-8] if you need it.